2018-06-11 06:52:22 +02:00
|
|
|
# BoardConfigGsiCommon.mk
|
|
|
|
#
|
|
|
|
# Common compile-time definitions for GSI
|
2018-11-22 16:39:10 +01:00
|
|
|
# Builds upon the mainline config.
|
2018-06-11 06:52:22 +02:00
|
|
|
#
|
|
|
|
|
2018-11-22 16:39:10 +01:00
|
|
|
include build/make/target/board/BoardConfigMainlineCommon.mk
|
|
|
|
|
|
|
|
# This flag is set by mainline but isn't desired for GSI.
|
|
|
|
BOARD_USES_SYSTEM_OTHER_ODEX :=
|
2018-10-18 15:08:38 +02:00
|
|
|
|
2019-01-03 05:49:55 +01:00
|
|
|
# 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
|
|
|
|
|
2018-10-04 04:14:54 +02:00
|
|
|
# Enable dynamic system image size and reserved 64MB in it.
|
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
|
2018-07-18 12:06:25 +02:00
|
|
|
|
2018-12-06 19:25:32 +01:00
|
|
|
# GSI forces product packages to /system for now.
|
|
|
|
TARGET_COPY_OUT_PRODUCT := system/product
|
2019-03-22 15:10:19 +01:00
|
|
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE :=
|
2019-01-03 05:49:55 +01:00
|
|
|
|
2019-01-09 08:42:36 +01:00
|
|
|
# Creates metadata partition mount point under root for
|
|
|
|
# the devices with metadata parition
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
|
2018-06-11 06:52:22 +02:00
|
|
|
# Android Verified Boot (AVB):
|
2019-02-10 19:47:41 +01:00
|
|
|
# Set AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED (--flags 2) in
|
2019-02-19 03:30:50 +01:00
|
|
|
# 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.
|
2018-08-31 15:40:10 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2019-02-19 03:30:50 +01:00
|
|
|
BOARD_AVB_ROLLBACK_INDEX := 0
|
2019-02-10 19:47:41 +01:00
|
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 2
|
2018-08-31 15:40:10 +02:00
|
|
|
|
|
|
|
# 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
|
2018-06-11 06:52:22 +02:00
|
|
|
|
2019-01-09 08:42:36 +01:00
|
|
|
# GSI specific System Properties
|
2018-06-11 06:52:22 +02:00
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
|
|
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
|
2019-02-15 07:18:35 +01:00
|
|
|
else
|
|
|
|
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system_user.prop
|
2018-06-11 06:52:22 +02:00
|
|
|
endif
|
2018-07-12 11:40:00 +02:00
|
|
|
|
|
|
|
# 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
|
2019-01-09 17:12:38 +01:00
|
|
|
|
|
|
|
# Disable 64 bit mediadrmserver
|
|
|
|
TARGET_ENABLE_MEDIADRM_64 :=
|
2019-02-11 13:42:57 +01:00
|
|
|
|
|
|
|
# Ordinary (non-flattened) APEX may require kernel changes. For maximum compatibility,
|
|
|
|
# use flattened APEX for GSI
|
|
|
|
TARGET_FLATTEN_APEX := true
|