Skip to content
Snippets Groups Projects
Commit 552fb537 authored by Dan Cashman's avatar Dan Cashman
Browse files

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
parent 7aad3b3b
No related branches found
No related tags found
No related merge requests found
...@@ -343,6 +343,7 @@ $(LOCAL_BUILT_MODULE) : ...@@ -343,6 +343,7 @@ $(LOCAL_BUILT_MODULE) :
echo $(PRIVATE_PLAT_SEPOL_VERS) > $@ echo $(PRIVATE_PLAT_SEPOL_VERS) > $@
################################# #################################
ifeq ($(PRODUCT_FULL_TREBLE),true)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := $(platform_mapping_file) LOCAL_MODULE := $(platform_mapping_file)
...@@ -376,6 +377,7 @@ $(LOCAL_BUILT_MODULE): $(mapping_policy_nvr) ...@@ -376,6 +377,7 @@ $(LOCAL_BUILT_MODULE): $(mapping_policy_nvr)
built_mapping_cil := $(LOCAL_BUILT_MODULE) built_mapping_cil := $(LOCAL_BUILT_MODULE)
current_mapping.cil := current_mapping.cil :=
endif # ifeq ($(PRODUCT_FULL_TREBLE),true)
################################# #################################
include $(CLEAR_VARS) include $(CLEAR_VARS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment