From e08363da378d1f9a5133850a570e4fa2f0cbf74a Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 7 Jun 2019 13:36:17 +0100 Subject: [PATCH] Re-submit "Make mainline device use apex" The build system default was changed to not support apex, but we want the mainline device to enable it. Test: make mainline_system Change-Id: I9f29e8354acffb1856dfd8a173b80a3f9324630c --- CleanSpec.mk | 2 ++ target/board/mainline_arm64/BoardConfig.mk | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index f43fa0ec40..b899bcda64 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -646,6 +646,8 @@ $(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)/vendor/odm/build.prop) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/apex) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/target/board/mainline_arm64/BoardConfig.mk b/target/board/mainline_arm64/BoardConfig.mk index 70505f4e12..ea2b3c5d76 100644 --- a/target/board/mainline_arm64/BoardConfig.mk +++ b/target/board/mainline_arm64/BoardConfig.mk @@ -34,3 +34,8 @@ AB_OTA_PARTITIONS := system BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 + +# Mainline devices support apex +# TODO: move this to BoardConfigMainlineCommon. Currently, GSI wants flattened +# apexes, but emulator wants .apex files, preventing this. +TARGET_FLATTEN_APEX := false