Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a37a037 authored by Yifan Hong's avatar Yifan Hong
Browse files

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
parent 284b2b9f
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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

# -----------------------------------------------------------------
###