ro.boot.dynamic_partitions: fix empty values

When PRODUCT_RETROFIT_DYNAMIC_PARTITIONS is empty, collapse-pairs will
write this line to build.prop:
ro.boot.dynamic_partitions=ro.boot.dynamic_partitions_retrofit=

... which is not what we want.
Test: build without dynamic partitions

Change-Id: I04c3c75fad20604657814b7f9cce2cc0635627ee
This commit is contained in:
Yifan Hong 2018-11-20 16:05:05 -08:00
parent 284b2b9fc9
commit 4a37a03758

View file

@ -244,9 +244,13 @@ else
ADDITIONAL_DEFAULT_PROPERTIES += ro.actionable_compatible_property.enabled=${PRODUCT_COMPATIBLE_PROPERTY}
endif
ADDITIONAL_PRODUCT_PROPERTIES += \
ro.boot.dynamic_partitions=$(PRODUCT_USE_DYNAMIC_PARTITIONS) \
ro.boot.dynamic_partitions_retrofit=$(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS)
ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
ADDITIONAL_PRODUCT_PROPERTIES += ro.boot.dynamic_partitions=true
endif
ifeq ($(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS),true)
ADDITIONAL_PRODUCT_PROPERTIES += ro.boot.dynamic_partitions_retrofit=true
endif
# -----------------------------------------------------------------
###