| # BoardConfigGsiCommon.mk |
| # |
| # Common compile-time definitions for GSI |
| # |
| |
| # Android Verified Boot (AVB): |
| # Builds a special vbmeta.img that disables AVB verification. |
| # Otherwise, AVB will prevent the device from booting the generic system.img. |
| # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity |
| # metadata into system.img. |
| ifeq ($(BOARD_AVB_ENABLE),true) |
| $(error BOARD_AVB_ENABLE cannot be set for GSI) |
| endif |
| BOARD_BUILD_DISABLED_VBMETAIMAGE := true |
| |
| ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| # GSI is always userdebug and needs a couple of properties taking precedence |
| # over those set by the vendor. |
| TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
| endif |
| BOARD_VNDK_VERSION := current |
| |
| # Pi GSI supports system-as-root |
| TARGET_NO_RECOVERY := true |
| BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
| |
| # Audio: must using XML format for Treblized devices |
| USE_XML_AUDIO_POLICY_CONF := 1 |