From cd2f94407cfa854822325a83bc4643804ab317fb Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 22 Mar 2019 15:02:08 +0000 Subject: [PATCH] Unset system-as-root for mainline This flag is not allowed to be true when dynamic partitions are enabled, which mainline devices are expected to do. Bug: 80410283 Test: make Change-Id: I50c9fe9332ea1490a84484f9311cfe001a083754 --- target/board/BoardConfigEmuCommon.mk | 2 ++ target/board/BoardConfigMainlineCommon.mk | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/target/board/BoardConfigEmuCommon.mk b/target/board/BoardConfigEmuCommon.mk index 3e8d342a7..617b3c58f 100644 --- a/target/board/BoardConfigEmuCommon.mk +++ b/target/board/BoardConfigEmuCommon.mk @@ -30,3 +30,5 @@ DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common +# TODO(b/125540538): Remove when emulator uses dynamic partitions +BOARD_BUILD_SYSTEM_ROOT_IMAGE := true diff --git a/target/board/BoardConfigMainlineCommon.mk b/target/board/BoardConfigMainlineCommon.mk index ed69357f1..53115537f 100644 --- a/target/board/BoardConfigMainlineCommon.mk +++ b/target/board/BoardConfigMainlineCommon.mk @@ -5,6 +5,7 @@ # The generic product target doesn't have any hardware-specific pieces. TARGET_NO_BOOTLOADER := true TARGET_NO_KERNEL := true +TARGET_NO_RECOVERY := true TARGET_USERIMAGES_USE_EXT4 := true @@ -15,10 +16,6 @@ BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 TARGET_COPY_OUT_PRODUCT := product BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 -# system-as-root is mandatory from Android P -TARGET_NO_RECOVERY := true -BOARD_BUILD_SYSTEM_ROOT_IMAGE := true - BOARD_VNDK_VERSION := current # Required flag for non-64 bit devices from P.