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:
parent
284b2b9fc9
commit
4a37a03758
1 changed files with 7 additions and 3 deletions
10
core/main.mk
10
core/main.mk
|
@ -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
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue