| 1 |
# BoardConfigGsiCommon.mk |
| 2 |
# |
| 3 |
# Common compile-time definitions for GSI |
| 4 |
# Builds upon the mainline config. |
| 5 |
# |
| 6 |
|
| 7 |
include build/make/target/board/BoardConfigMainlineCommon.mk |
| 8 |
|
| 9 |
TARGET_NO_KERNEL := true |
| 10 |
|
| 11 |
# This flag is set by mainline but isn't desired for GSI. |
| 12 |
BOARD_USES_SYSTEM_OTHER_ODEX := |
| 13 |
|
| 14 |
# system.img is always ext4 with sparse option |
| 15 |
# GSI also includes make_f2fs to support userdata parition in f2fs |
| 16 |
# for some devices |
| 17 |
TARGET_USERIMAGES_USE_F2FS := true |
| 18 |
|
| 19 |
# Enable dynamic system image size and reserved 64MB in it. |
| 20 |
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864 |
| 21 |
|
| 22 |
# GSI forces product packages to /system for now. |
| 23 |
TARGET_COPY_OUT_PRODUCT := system/product |
| 24 |
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := |
| 25 |
|
| 26 |
# Creates metadata partition mount point under root for |
| 27 |
# the devices with metadata parition |
| 28 |
BOARD_USES_METADATA_PARTITION := true |
| 29 |
|
| 30 |
# Android Verified Boot (AVB): |
| 31 |
# Set the rollback index to zero, to prevent the device bootloader from |
| 32 |
# updating the last seen rollback index in the tamper-evident storage. |
| 33 |
BOARD_AVB_ROLLBACK_INDEX := 0 |
| 34 |
|
| 35 |
# Enable chain partition for system. |
| 36 |
BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem |
| 37 |
BOARD_AVB_SYSTEM_ALGORITHM := SHA256_RSA2048 |
| 38 |
BOARD_AVB_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 39 |
BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 1 |
| 40 |
|
| 41 |
# GSI specific System Properties |
| 42 |
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 43 |
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
| 44 |
else |
| 45 |
TARGET_SYSTEM_PROP := build/make/target/board/gsi_system_user.prop |
| 46 |
endif |
| 47 |
|
| 48 |
# Set this to create /cache mount point for non-A/B devices that mounts /cache. |
| 49 |
# The partition size doesn't matter, just to make build pass. |
| 50 |
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 51 |
BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 |
| 52 |
|
| 53 |
# Setup a vendor image to let PRODUCT_PROPERTY_OVERRIDES does not affect GSI |
| 54 |
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 55 |
|
| 56 |
# Disable 64 bit mediadrmserver |
| 57 |
TARGET_ENABLE_MEDIADRM_64 := |
| 58 |
|
| 59 |
# Ordinary (non-flattened) APEX may require kernel changes. For maximum compatibility, |
| 60 |
# use flattened APEX for GSI |
| 61 |
TARGET_FLATTEN_APEX := true |