Isaac Chen | 55e1d01 | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 1 | # BoardConfigGsiCommon.mk |
| 2 | # |
| 3 | # Common compile-time definitions for GSI |
| 4 | # |
| 5 | |
Colin Cross | 132748c | 2018-08-01 06:26:03 +0000 | [diff] [blame] | 6 | # system.img is always ext4 with sparse option |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 7 | TARGET_USERIMAGES_USE_EXT4 := true |
Colin Cross | 132748c | 2018-08-01 06:26:03 +0000 | [diff] [blame] | 8 | # TODO(b/63790380): emulator doesn't support sparse yet |
| 9 | #TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false |
| 10 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 11 | TARGET_USES_MKE2FS := true |
| 12 | |
SzuWei Lin | 79bfba0 | 2018-07-18 18:06:25 +0800 | [diff] [blame^] | 13 | # Enable dyanmic system image size and reserved 64MB in it. |
| 14 | BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864 |
| 15 | |
Isaac Chen | 55e1d01 | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 16 | # Android Verified Boot (AVB): |
| 17 | # Builds a special vbmeta.img that disables AVB verification. |
| 18 | # Otherwise, AVB will prevent the device from booting the generic system.img. |
| 19 | # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity |
| 20 | # metadata into system.img. |
| 21 | ifeq ($(BOARD_AVB_ENABLE),true) |
| 22 | $(error BOARD_AVB_ENABLE cannot be set for GSI) |
| 23 | endif |
| 24 | BOARD_BUILD_DISABLED_VBMETAIMAGE := true |
| 25 | |
| 26 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 27 | # GSI is always userdebug and needs a couple of properties taking precedence |
| 28 | # over those set by the vendor. |
| 29 | TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
| 30 | endif |
| 31 | BOARD_VNDK_VERSION := current |
| 32 | |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 33 | # system-as-root is mandatory from Android P |
Isaac Chen | 55e1d01 | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 34 | TARGET_NO_RECOVERY := true |
| 35 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
SzuWei Lin | fa420b4 | 2018-07-02 18:41:07 +0800 | [diff] [blame] | 36 | |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 37 | # 64 bits binder interface is mandatory from Android P |
| 38 | TARGET_USES_64_BIT_BINDER := true |
| 39 | |
| 40 | # Android generic system image always create metadata partition |
| 41 | BOARD_USES_METADATA_PARTITION := true |
| 42 | |
| 43 | # Set this to create /cache mount point for non-A/B devices that mounts /cache. |
| 44 | # The partition size doesn't matter, just to make build pass. |
| 45 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 46 | BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 |
| 47 | |
SzuWei Lin | fa420b4 | 2018-07-02 18:41:07 +0800 | [diff] [blame] | 48 | # Audio: must using XML format for Treblized devices |
| 49 | USE_XML_AUDIO_POLICY_CONF := 1 |