diff --git a/core/Makefile b/core/Makefile index 672175750e..9eb36ea005 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1241,7 +1241,7 @@ ifeq ($(INTERNAL_USERIMAGES_USE_EXT),true) INTERNAL_USERIMAGES_DEPS += $(MKE2FS_CONF) endif -ifeq (true,$(PRODUCT_USE_LOGICAL_PARTITIONS)) +ifeq (true,$(PRODUCT_USE_DYNAMIC_PARTITIONS)) ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true) $(error vboot 1.0 doesn't support logical partition) @@ -1250,7 +1250,7 @@ endif # TODO(b/80195851): Should not define BOARD_AVB_SYSTEM_KEY_PATH without # BOARD_AVB_SYSTEM_DETACHED_VBMETA. -endif # PRODUCT_USE_LOGICAL_PARTITIONS +endif # PRODUCT_USE_DYNAMIC_PARTITIONS # $(1): the path of the output dictionary file # $(2): a subset of "system vendor cache userdata product product_services oem odm" diff --git a/core/config.mk b/core/config.mk index 3289a898ff..e44af561c3 100644 --- a/core/config.mk +++ b/core/config.mk @@ -932,13 +932,13 @@ ifndef PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS endif .KATI_READONLY := PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS -ifeq ($(PRODUCT_USE_LOGICAL_PARTITIONS),true) +ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true) requirements := \ PRODUCT_USE_DYNAMIC_PARTITION_SIZE \ PRODUCT_BUILD_SUPER_PARTITION \ $(foreach req,$(requirements),$(if $(filter false,$($(req))),\ - $(error PRODUCT_USE_LOGICAL_PARTITIONS requires $(req) to be true))) + $(error PRODUCT_USE_DYNAMIC_PARTITIONS requires $(req) to be true))) requirements := diff --git a/core/main.mk b/core/main.mk index 6374be9a8e..915d4bef97 100644 --- a/core/main.mk +++ b/core/main.mk @@ -246,7 +246,10 @@ else ADDITIONAL_DEFAULT_PROPERTIES += ro.actionable_compatible_property.enabled=${PRODUCT_COMPATIBLE_PROPERTY} endif -ADDITIONAL_PRODUCT_PROPERTIES += ro.boot.logical_partitions=$(PRODUCT_USE_LOGICAL_PARTITIONS) +# TODO(b/119286600): remove ro.logical_partitions +ADDITIONAL_PRODUCT_PROPERTIES += \ + ro.boot.logical_partitions=$(PRODUCT_USE_DYNAMIC_PARTITIONS) \ + ro.boot.dynamic_partitions=$(PRODUCT_USE_DYNAMIC_PARTITIONS) \ # ----------------------------------------------------------------- ### diff --git a/core/product.mk b/core/product.mk index f9f8d60fdf..13cc319bc7 100644 --- a/core/product.mk +++ b/core/product.mk @@ -210,6 +210,7 @@ _product_var_list := \ PRODUCT_USE_DYNAMIC_PARTITION_SIZE \ PRODUCT_BUILD_SUPER_PARTITION \ PRODUCT_FORCE_PRODUCT_MODULES_TO_SYSTEM_PARTITION \ + PRODUCT_USE_DYNAMIC_PARTITIONS \ define dump-product $(info ==== $(1) ====)\ diff --git a/core/product_config.mk b/core/product_config.mk index 577bafe73f..22a13f38f8 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -513,20 +513,22 @@ PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := \ PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE := \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ACTIONABLE_COMPATIBLE_PROPERTY_DISABLE)) -# Logical and Resizable Partitions feature flag. -PRODUCT_USE_LOGICAL_PARTITIONS := \ - $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_USE_LOGICAL_PARTITIONS)) -.KATI_READONLY := PRODUCT_USE_LOGICAL_PARTITIONS +# Dynamic partition feature flags. +# TODO(b/119286600): remove PRODUCT_USE_LOGICAL_PARTITIONS +PRODUCT_USE_DYNAMIC_PARTITIONS := $(or \ + $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_USE_DYNAMIC_PARTITIONS)), \ + $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_USE_LOGICAL_PARTITIONS))) +.KATI_READONLY := PRODUCT_USE_DYNAMIC_PARTITIONS -# All requirements of PRODUCT_USE_LOGICAL_PARTITIONS falls back to -# PRODUCT_USE_LOGICAL_PARTITIONS if not defined. +# All requirements of PRODUCT_USE_DYNAMIC_PARTITIONS falls back to +# PRODUCT_USE_DYNAMIC_PARTITIONS if not defined. PRODUCT_USE_DYNAMIC_PARTITION_SIZE := $(or \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_USE_DYNAMIC_PARTITION_SIZE)),\ - $(PRODUCT_USE_LOGICAL_PARTITIONS)) + $(PRODUCT_USE_DYNAMIC_PARTITIONS)) .KATI_READONLY := PRODUCT_USE_DYNAMIC_PARTITION_SIZE PRODUCT_BUILD_SUPER_PARTITION := $(or \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BUILD_SUPER_PARTITION)),\ - $(PRODUCT_USE_LOGICAL_PARTITIONS)) + $(PRODUCT_USE_DYNAMIC_PARTITIONS)) .KATI_READONLY := PRODUCT_BUILD_SUPER_PARTITION # List of modules that should be forcefully unmarked from being LOCAL_PRODUCT_MODULE, and hence