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