From d7ae1bc16978c958706789bf1ff706a878a5ddac Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Wed, 8 Aug 2018 13:22:36 +0800 Subject: [PATCH] Enable dynamic image size for all generic devices We enabled the dynamic image for all generic_* BoardConfig.mk. If a product makefile which use these BoardConfig.mk, it should define PRODUCT_USE_DYNAMIC_PARTITION_SIZE to enable dynamic image. This patch enable PRODUCT_USE_DYNAMIC_PARTITION_SIZE to product `full` and `mainline_$arch`. Bug: 71970853 Test: make -j PRODUCT-full-eng dist Test: make -j PRODUCT-mainline_arm64-userdebug dist Change-Id: I499b733638165306e3b0512859e205a1b36a9130 --- target/product/full.mk | 3 +++ target/product/full_x86.mk | 3 +++ target/product/mainline_system.mk | 3 +++ 3 files changed, 9 insertions(+) diff --git a/target/product/full.mk b/target/product/full.mk index 7c0578c58..b356f9d42 100644 --- a/target/product/full.mk +++ b/target/product/full.mk @@ -23,6 +23,9 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/emulator.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) $(call inherit-product, $(SRC_TARGET_DIR)/board/generic/device.mk) +# Enable dynamic partition size +PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true + # Overrides PRODUCT_NAME := full PRODUCT_DEVICE := generic diff --git a/target/product/full_x86.mk b/target/product/full_x86.mk index 6ea2d05dd..a76b07cfb 100644 --- a/target/product/full_x86.mk +++ b/target/product/full_x86.mk @@ -36,6 +36,9 @@ PRODUCT_PACKAGES += \ bios.bin \ vgabios-cirrus.bin \ +# Enable dynamic partition size +PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true + # Overrides PRODUCT_NAME := full_x86 PRODUCT_DEVICE := generic_x86 diff --git a/target/product/mainline_system.mk b/target/product/mainline_system.mk index 53c32b315..74a3b1937 100644 --- a/target/product/mainline_system.mk +++ b/target/product/mainline_system.mk @@ -18,6 +18,9 @@ # device with no telephony. $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk) +# Enable dynamic partition size +PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true + PRODUCT_NAME := mainline_system PRODUCT_BRAND := generic PRODUCT_SHIPPING_API_LEVEL := 28