2018-06-11 04:52:22 +00:00
|
|
|
# BoardConfigGsiCommon.mk
|
|
|
|
#
|
|
|
|
# Common compile-time definitions for GSI
|
|
|
|
#
|
|
|
|
|
2018-08-01 06:26:03 +00:00
|
|
|
# system.img is always ext4 with sparse option
|
2018-07-12 09:40:00 +00:00
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
2018-08-01 06:26:03 +00:00
|
|
|
# TODO(b/63790380): emulator doesn't support sparse yet
|
|
|
|
#TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
|
|
|
|
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
|
2018-07-12 09:40:00 +00:00
|
|
|
TARGET_USES_MKE2FS := true
|
|
|
|
|
2018-06-11 04:52:22 +00:00
|
|
|
# Android Verified Boot (AVB):
|
|
|
|
# Builds a special vbmeta.img that disables AVB verification.
|
|
|
|
# Otherwise, AVB will prevent the device from booting the generic system.img.
|
|
|
|
# Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity
|
|
|
|
# metadata into system.img.
|
|
|
|
ifeq ($(BOARD_AVB_ENABLE),true)
|
|
|
|
$(error BOARD_AVB_ENABLE cannot be set for GSI)
|
|
|
|
endif
|
|
|
|
BOARD_BUILD_DISABLED_VBMETAIMAGE := true
|
|
|
|
|
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
|
|
# GSI is always userdebug and needs a couple of properties taking precedence
|
|
|
|
# over those set by the vendor.
|
|
|
|
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
|
|
|
|
endif
|
|
|
|
BOARD_VNDK_VERSION := current
|
|
|
|
|
2018-07-12 09:40:00 +00:00
|
|
|
# system-as-root is mandatory from Android P
|
2018-06-11 04:52:22 +00:00
|
|
|
TARGET_NO_RECOVERY := true
|
|
|
|
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|
2018-07-02 10:41:07 +00:00
|
|
|
|
2018-07-12 09:40:00 +00:00
|
|
|
# 64 bits binder interface is mandatory from Android P
|
|
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
|
|
|
|
# Android generic system image always create metadata partition
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
|
|
|
|
# Set this to create /cache mount point for non-A/B devices that mounts /cache.
|
|
|
|
# The partition size doesn't matter, just to make build pass.
|
|
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
|
|
|
|
|
2018-07-02 10:41:07 +00:00
|
|
|
# Audio: must using XML format for Treblized devices
|
|
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|