1# BoardConfigGsiCommon.mk 2# 3# Common compile-time definitions for GSI 4# Builds upon the mainline config. 5# 6 7include build/make/target/board/BoardConfigMainlineCommon.mk 8 9TARGET_NO_KERNEL := true 10 11# This flag is set by mainline but isn't desired for GSI. 12BOARD_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 17TARGET_USERIMAGES_USE_F2FS := true 18 19# Enable dynamic system image size and reserved 64MB in it. 20BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864 21 22# GSI forces product packages to /system for now. 23TARGET_COPY_OUT_PRODUCT := system/product 24BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := 25 26# Creates metadata partition mount point under root for 27# the devices with metadata parition 28BOARD_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. 33BOARD_AVB_ROLLBACK_INDEX := 0 34 35# Enable chain partition for system. 36BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem 37BOARD_AVB_SYSTEM_ALGORITHM := SHA256_RSA2048 38BOARD_AVB_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) 39BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 1 40 41# GSI specific System Properties 42ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 43TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop 44else 45TARGET_SYSTEM_PROP := build/make/target/board/gsi_system_user.prop 46endif 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. 50BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 51BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 52 53# Setup a vendor image to let PRODUCT_PROPERTY_OVERRIDES does not affect GSI 54BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 55 56# Disable 64 bit mediadrmserver 57TARGET_ENABLE_MEDIADRM_64 := 58 59# Ordinary (non-flattened) APEX may require kernel changes. For maximum compatibility, 60# use flattened APEX for GSI 61TARGET_FLATTEN_APEX := true 62