Add product and system_ext partition for emulator
Build product and system_ext image and add them to super partition.
Bug: 138382074
Test: boot emulator and check system_ext partition mounted
Change-Id: Ifa67bd6ad475ac5912e8f919c7a771c9958bd5c2
Merged-In: Ifa67bd6ad475ac5912e8f919c7a771c9958bd5c2
(cherry picked from commit 28843c3e32
)
This commit is contained in:
parent
93b7c1b547
commit
ff3d62d31d
|
@ -646,6 +646,10 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libstagefright_soft*)
|
||||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/odm/build.prop)
|
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/odm/build.prop)
|
||||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/odm/build.prop)
|
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/odm/build.prop)
|
||||||
|
|
||||||
|
# Move product and system_ext to root for emulators
|
||||||
|
$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/generic*/*/product)
|
||||||
|
$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/generic*/*/system_ext)
|
||||||
|
|
||||||
# ************************************************
|
# ************************************************
|
||||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||||
# ************************************************
|
# ************************************************
|
||||||
|
|
|
@ -37,7 +37,9 @@ ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
|
||||||
BOARD_SUPER_PARTITION_GROUPS := emulator_dynamic_partitions
|
BOARD_SUPER_PARTITION_GROUPS := emulator_dynamic_partitions
|
||||||
BOARD_EMULATOR_DYNAMIC_PARTITIONS_PARTITION_LIST := \
|
BOARD_EMULATOR_DYNAMIC_PARTITIONS_PARTITION_LIST := \
|
||||||
system \
|
system \
|
||||||
vendor
|
vendor \
|
||||||
|
product \
|
||||||
|
system_ext
|
||||||
|
|
||||||
# 3G
|
# 3G
|
||||||
BOARD_EMULATOR_DYNAMIC_PARTITIONS_SIZE := 3221225472
|
BOARD_EMULATOR_DYNAMIC_PARTITIONS_SIZE := 3221225472
|
||||||
|
@ -55,6 +57,11 @@ else
|
||||||
BOARD_VENDORIMAGE_PARTITION_SIZE := 146800640
|
BOARD_VENDORIMAGE_PARTITION_SIZE := 146800640
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
TARGET_COPY_OUT_PRODUCT := product
|
||||||
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||||
|
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
||||||
|
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||||
|
|
||||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||||
BOARD_FLASH_BLOCK_SIZE := 512
|
BOARD_FLASH_BLOCK_SIZE := 512
|
||||||
DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
|
DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
|
||||||
|
|
Loading…
Reference in New Issue