blob: e91051493a0df4a40f0955a7548ae2624e3c9e81 [file] [log] [blame]
Isaac Chen55e1d012018-06-11 12:52:22 +08001# BoardConfigGsiCommon.mk
2#
3# Common compile-time definitions for GSI
4#
5
Colin Cross132748c2018-08-01 06:26:03 +00006# system.img is always ext4 with sparse option
SzuWei Line592c962018-07-12 17:40:00 +08007TARGET_USERIMAGES_USE_EXT4 := true
Colin Cross132748c2018-08-01 06:26:03 +00008# TODO(b/63790380): emulator doesn't support sparse yet
9#TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
10TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
SzuWei Line592c962018-07-12 17:40:00 +080011TARGET_USES_MKE2FS := true
12
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