91aa9414c0
Move a couple of variables out of BoardConfigMainlineCommon because they vary either by device or by how they build in AOSP vs internal. Bug: 80410283 Test: presubmit Change-Id: Ia42df91ad8c8d8fc4618be375a17ea23896f4352
70 lines
2.5 KiB
Makefile
70 lines
2.5 KiB
Makefile
# BoardConfigGsiCommon.mk
|
|
#
|
|
# Common compile-time definitions for GSI
|
|
# Builds upon the mainline config.
|
|
#
|
|
|
|
include build/make/target/board/BoardConfigMainlineCommon.mk
|
|
|
|
TARGET_NO_KERNEL := true
|
|
|
|
# This flag is set by mainline but isn't desired for GSI.
|
|
BOARD_USES_SYSTEM_OTHER_ODEX :=
|
|
|
|
# GSIs are historically released in sparse format.
|
|
# Some vendors' bootloaders don't work properly with raw format images. So
|
|
# we explicit specify this need below (even though it's the current default).
|
|
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
|
|
|
|
# system.img is always ext4 with sparse option
|
|
# GSI also includes make_f2fs to support userdata parition in f2fs
|
|
# for some devices
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
# Enable dynamic system image size and reserved 64MB in it.
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
|
|
|
|
# GSI forces product packages to /system for now.
|
|
TARGET_COPY_OUT_PRODUCT := system/product
|
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE :=
|
|
|
|
# Creates metadata partition mount point under root for
|
|
# the devices with metadata parition
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
# Android Verified Boot (AVB):
|
|
# Set AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED (--flags 2) in
|
|
# vbmeta.img to disable AVB verification. Also set the rollback index
|
|
# to zero, to prevent the device bootloader from updating the last seen
|
|
# rollback index in the tamper-evident storage.
|
|
#
|
|
# To disable AVB for GSI, use the vbmeta.img and the GSI together.
|
|
# To enable AVB for GSI, include the GSI public key into the device-specific
|
|
# vbmeta.img.
|
|
BOARD_AVB_ROLLBACK_INDEX := 0
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 2
|
|
|
|
# Enable chain partition for system.
|
|
BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|
|
BOARD_AVB_SYSTEM_ALGORITHM := SHA256_RSA2048
|
|
BOARD_AVB_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
|
BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 1
|
|
|
|
# GSI specific System Properties
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
|
|
else
|
|
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system_user.prop
|
|
endif
|
|
|
|
# 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
|
|
|
|
# Disable 64 bit mediadrmserver
|
|
TARGET_ENABLE_MEDIADRM_64 :=
|
|
|
|
# Ordinary (non-flattened) APEX may require kernel changes. For maximum compatibility,
|
|
# use flattened APEX for GSI
|
|
TARGET_FLATTEN_APEX := true
|