Merge "Enable vndk_package if BOARD_VNDK_VERSION is set" into pi-dev
diff --git a/core/main.mk b/core/main.mk
index 5675f90..86b8a8f 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -891,6 +891,9 @@
# by the appropriate product definition file, which was included
# by product_config.mk.
product_MODULES := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES)
+ifdef BOARD_VNDK_VERSION
+ product_MODULES += vndk_package
+endif
# Filter out the overridden packages before doing expansion
product_MODULES := $(filter-out $(foreach p, $(product_MODULES), \
$(PACKAGES.$(p).OVERRIDES)), $(product_MODULES))