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 | |
Isaac Chen | b9b51b1 | 2018-08-03 18:34:55 +0000 | [diff] [blame^] | 6 | # GSIs always use ext4. |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 7 | TARGET_USERIMAGES_USE_EXT4 := true |
Isaac Chen | b9b51b1 | 2018-08-03 18:34:55 +0000 | [diff] [blame^] | 8 | # GSIs are historically released in sparse format. |
| 9 | # Some vendors' bootloaders don't work properly with raw format images. So |
| 10 | # we explicit specify this need below (even though it's the current default). |
| 11 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 12 | TARGET_USES_MKE2FS := true |
| 13 | |
Isaac Chen | 55e1d01 | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 14 | # Android Verified Boot (AVB): |
| 15 | # Builds a special vbmeta.img that disables AVB verification. |
| 16 | # Otherwise, AVB will prevent the device from booting the generic system.img. |
| 17 | # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity |
| 18 | # metadata into system.img. |
| 19 | ifeq ($(BOARD_AVB_ENABLE),true) |
| 20 | $(error BOARD_AVB_ENABLE cannot be set for GSI) |
| 21 | endif |
| 22 | BOARD_BUILD_DISABLED_VBMETAIMAGE := true |
| 23 | |
| 24 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 25 | # GSI is always userdebug and needs a couple of properties taking precedence |
| 26 | # over those set by the vendor. |
| 27 | TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
| 28 | endif |
| 29 | BOARD_VNDK_VERSION := current |
| 30 | |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 31 | # system-as-root is mandatory from Android P |
Isaac Chen | 55e1d01 | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 32 | TARGET_NO_RECOVERY := true |
| 33 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
SzuWei Lin | fa420b4 | 2018-07-02 18:41:07 +0800 | [diff] [blame] | 34 | |
SzuWei Lin | e592c96 | 2018-07-12 17:40:00 +0800 | [diff] [blame] | 35 | # 64 bits binder interface is mandatory from Android P |
| 36 | TARGET_USES_64_BIT_BINDER := true |
| 37 | |
| 38 | # Android generic system image always create metadata partition |
| 39 | BOARD_USES_METADATA_PARTITION := true |
| 40 | |
| 41 | # Set this to create /cache mount point for non-A/B devices that mounts /cache. |
| 42 | # The partition size doesn't matter, just to make build pass. |
| 43 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 44 | BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 |
| 45 | |
SzuWei Lin | fa420b4 | 2018-07-02 18:41:07 +0800 | [diff] [blame] | 46 | # Audio: must using XML format for Treblized devices |
| 47 | USE_XML_AUDIO_POLICY_CONF := 1 |