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 | |
| 6 | # Android Verified Boot (AVB): |
| 7 | # Builds a special vbmeta.img that disables AVB verification. |
| 8 | # Otherwise, AVB will prevent the device from booting the generic system.img. |
| 9 | # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity |
| 10 | # metadata into system.img. |
| 11 | ifeq ($(BOARD_AVB_ENABLE),true) |
| 12 | $(error BOARD_AVB_ENABLE cannot be set for GSI) |
| 13 | endif |
| 14 | BOARD_BUILD_DISABLED_VBMETAIMAGE := true |
| 15 | |
| 16 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 17 | # GSI is always userdebug and needs a couple of properties taking precedence |
| 18 | # over those set by the vendor. |
| 19 | TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
| 20 | endif |
| 21 | BOARD_VNDK_VERSION := current |
| 22 | |
| 23 | # Pi GSI supports system-as-root |
| 24 | TARGET_NO_RECOVERY := true |
| 25 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
SzuWei Lin | fa420b4 | 2018-07-02 18:41:07 +0800 | [diff] [blame] | 26 | |
| 27 | # Audio: must using XML format for Treblized devices |
| 28 | USE_XML_AUDIO_POLICY_CONF := 1 |