Do not assign 'false' to PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE

When OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is set to
false, it must not copy the value to
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE but leave it empty
because Soong always set EnforceProductPartitionInterface to true if
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE has value.

Bug: 148952638
Test: Build with
      OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE=false

Change-Id: I6435157ff993e53669b4244c9be74efbcc84107d
This commit is contained in:
Justin Yun 2020-02-06 10:01:25 +09:00
parent 1dffdf84d1
commit 03f4ed3415
1 changed files with 5 additions and 1 deletions

View File

@ -351,7 +351,11 @@ $(KATI_obsolete_var OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS \
,Use PRODUCT_EXTRA_VNDK_VERSIONS instead)
ifdef OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE
ifeq (false,$(OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE))
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE :=
else
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE := $(OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE)
endif
else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
# No shipping level defined
else ifeq ($(call math_gt,$(PRODUCT_SHIPPING_API_LEVEL),29),true)