From 6d4fab193a65ff858eb166fa5d0163503dcce8ba Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Tue, 10 Oct 2017 13:53:32 +0900 Subject: [PATCH] Add ro.vndk.version property ro.vndk.version property is VNDK version in vendor partition. It is set to the value of BOARD_VNDK_VERSION at build time. Bug: 66072863 Test: build & run Change-Id: Iecaede005474c4179a8135cf967e5b5b5ebcb881 --- core/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Makefile b/core/Makefile index 912bf88cf4..9dbcf7a9cd 100644 --- a/core/Makefile +++ b/core/Makefile @@ -136,6 +136,11 @@ ifdef property_overrides_split_enabled INSTALLED_VENDOR_DEFAULT_PROP_TARGET := $(TARGET_OUT_VENDOR)/default.prop ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_VENDOR_DEFAULT_PROP_TARGET) +ifdef BOARD_VNDK_VERSION +FINAL_VENDOR_DEFAULT_PROPERTIES := ro.vndk.version=${BOARD_VNDK_VERSION} +else +FINAL_VENDOR_DEFAULT_PROPERTIES := +endif FINAL_VENDOR_DEFAULT_PROPERTIES += \ $(call collapse-pairs, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)) FINAL_VENDOR_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \