1# BoardConfigMgsiCommon.mk
2#
3# Common compile-time definitions for MGSI
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 MGSI.
12BOARD_USES_SYSTEM_OTHER_ODEX :=
13
14# system.img is always ext4
15# MGSI 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# MGSI forces product and system_ext packages to /system for now.
23TARGET_COPY_OUT_PRODUCT := system/product
24TARGET_COPY_OUT_SYSTEM_EXT := system/system_ext
25# BOARD_X_FILE_SYSTEM_TYPE must be empty if TARGET_COPY_OUT_X is 'system/xyz'.
26BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE :=
27BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE :=
28
29# Creates metadata partition mount point under root for
30# the devices with metadata parition
31BOARD_USES_METADATA_PARTITION := true
32
33# Android Verified Boot (AVB):
34#   Set the rollback index to zero, to prevent the device bootloader from
35#   updating the last seen rollback index in the tamper-evident storage.
36BOARD_AVB_ROLLBACK_INDEX := 0
37
38# Enable chain partition for system.
39BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
40BOARD_AVB_SYSTEM_ALGORITHM := SHA256_RSA2048
41BOARD_AVB_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
42BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 1
43
44# MGSI specific System Properties
45ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
46TARGET_SYSTEM_PROP := device/generic/common/mgsi/mgsi_system.prop
47else
48TARGET_SYSTEM_PROP := device/generic/common/mgsi/mgsi_system_user.prop
49endif
50
51# Set this to create /cache mount point for non-A/B devices that mounts /cache.
52# The partition size doesn't matter, just to make build pass.
53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
55
56# Setup a vendor image to let PRODUCT_PROPERTY_OVERRIDES does not affect MGSI
57BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
58
59# Disable 64 bit mediadrmserver
60TARGET_ENABLE_MEDIADRM_64 :=
61