Fix build: encase $(platform_mapping_file) module in treble block.
Specifying an empty module causes a build error, so make sure that
if there is no $(platform_mapping_file) the MODULE is not included.
Test: Makefiles parsed without error.
Change-Id: Ie99e6534c388a3d42bf90cdfef5ee64d5c640fa0
diff --git a/Android.mk b/Android.mk
index 2c77d2f..0cd642c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -343,6 +343,7 @@
echo $(PRIVATE_PLAT_SEPOL_VERS) > $@
#################################
+ifeq ($(PRODUCT_FULL_TREBLE),true)
include $(CLEAR_VARS)
LOCAL_MODULE := $(platform_mapping_file)
@@ -376,6 +377,7 @@
built_mapping_cil := $(LOCAL_BUILT_MODULE)
current_mapping.cil :=
+endif # ifeq ($(PRODUCT_FULL_TREBLE),true)
#################################
include $(CLEAR_VARS)