blob: c1f36271f6be8dc8e349e64df53b983053dd6b92 [file] [log] [blame]
Isaac Chen55e1d012018-06-11 12:52:22 +08001# BoardConfigGsiCommon.mk
2#
3# Common compile-time definitions for GSI
4#
5
Isaac Chenb9b51b12018-08-03 18:34:55 +00006# GSIs always use ext4.
SzuWei Line592c962018-07-12 17:40:00 +08007TARGET_USERIMAGES_USE_EXT4 := true
Isaac Chenb9b51b12018-08-03 18:34:55 +00008# 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).
11TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
SzuWei Line592c962018-07-12 17:40:00 +080012
SzuWei Lin79bfba02018-07-18 18:06:25 +080013# Enable dyanmic system image size and reserved 64MB in it.
14BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
15
Isaac Chen55e1d012018-06-11 12:52:22 +080016# 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.
21ifeq ($(BOARD_AVB_ENABLE),true)
22$(error BOARD_AVB_ENABLE cannot be set for GSI)
23endif
24BOARD_BUILD_DISABLED_VBMETAIMAGE := true
25
26ifneq (,$(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.
29TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
30endif
31BOARD_VNDK_VERSION := current
32
SzuWei Line592c962018-07-12 17:40:00 +080033# system-as-root is mandatory from Android P
Isaac Chen55e1d012018-06-11 12:52:22 +080034TARGET_NO_RECOVERY := true
35BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
SzuWei Linfa420b42018-07-02 18:41:07 +080036
SzuWei Line592c962018-07-12 17:40:00 +080037# 64 bits binder interface is mandatory from Android P
38TARGET_USES_64_BIT_BINDER := true
39
40# Android generic system image always create metadata partition
41BOARD_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.
45BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
46BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
47
SzuWei Linfa420b42018-07-02 18:41:07 +080048# Audio: must using XML format for Treblized devices
49USE_XML_AUDIO_POLICY_CONF := 1