blob: 24614dedc0302ab3bde5686b7a0e3ec679c0f443 [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
Isaac Chen55e1d012018-06-11 12:52:22 +080013# Android Verified Boot (AVB):
14# Builds a special vbmeta.img that disables AVB verification.
15# Otherwise, AVB will prevent the device from booting the generic system.img.
16# Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity
17# metadata into system.img.
18ifeq ($(BOARD_AVB_ENABLE),true)
19$(error BOARD_AVB_ENABLE cannot be set for GSI)
20endif
21BOARD_BUILD_DISABLED_VBMETAIMAGE := true
22
23ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
24# GSI is always userdebug and needs a couple of properties taking precedence
25# over those set by the vendor.
26TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
27endif
28BOARD_VNDK_VERSION := current
29
SzuWei Line592c962018-07-12 17:40:00 +080030# system-as-root is mandatory from Android P
Isaac Chen55e1d012018-06-11 12:52:22 +080031TARGET_NO_RECOVERY := true
32BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
SzuWei Linfa420b42018-07-02 18:41:07 +080033
SzuWei Line592c962018-07-12 17:40:00 +080034# 64 bits binder interface is mandatory from Android P
35TARGET_USES_64_BIT_BINDER := true
36
37# Android generic system image always create metadata partition
38BOARD_USES_METADATA_PARTITION := true
39
40# Set this to create /cache mount point for non-A/B devices that mounts /cache.
41# The partition size doesn't matter, just to make build pass.
42BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
43BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
44
SzuWei Linfa420b42018-07-02 18:41:07 +080045# Audio: must using XML format for Treblized devices
46USE_XML_AUDIO_POLICY_CONF := 1