blob: 237cd2887feb788e62d00a76c05be538449d2bc1 [file] [log] [blame]
Isaac Chen55e1d012018-06-11 12:52:22 +08001# 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.
11ifeq ($(BOARD_AVB_ENABLE),true)
12$(error BOARD_AVB_ENABLE cannot be set for GSI)
13endif
14BOARD_BUILD_DISABLED_VBMETAIMAGE := true
15
16ifneq (,$(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.
19TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
20endif
21BOARD_VNDK_VERSION := current
22
23# Pi GSI supports system-as-root
24TARGET_NO_RECOVERY := true
25BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
SzuWei Linfa420b42018-07-02 18:41:07 +080026
27# Audio: must using XML format for Treblized devices
28USE_XML_AUDIO_POLICY_CONF := 1