2022-04-04 17:56:53 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2022 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
# Inherit from the proprietary version
|
|
|
|
include vendor/xiaomi/sm8450-common/BoardConfigVendor.mk
|
|
|
|
|
|
|
|
COMMON_PATH := device/xiaomi/sm8450-common
|
|
|
|
|
2024-01-20 10:41:01 +01:00
|
|
|
# A/B
|
|
|
|
AB_OTA_UPDATER := true
|
|
|
|
|
|
|
|
AB_OTA_PARTITIONS += \
|
|
|
|
boot \
|
|
|
|
dtbo \
|
|
|
|
odm \
|
|
|
|
product \
|
|
|
|
recovery \
|
|
|
|
system \
|
|
|
|
system_ext \
|
|
|
|
vbmeta \
|
|
|
|
vbmeta_system \
|
|
|
|
vendor \
|
|
|
|
vendor_boot \
|
|
|
|
vendor_dlkm
|
|
|
|
|
2022-04-04 17:56:53 +02:00
|
|
|
# Architecture
|
|
|
|
TARGET_ARCH := arm64
|
|
|
|
TARGET_ARCH_VARIANT := armv8-a-branchprot
|
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
|
|
|
TARGET_CPU_ABI2 :=
|
|
|
|
TARGET_CPU_VARIANT := kryo300
|
|
|
|
|
|
|
|
TARGET_2ND_ARCH := arm
|
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-2a
|
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
|
|
|
TARGET_2ND_CPU_VARIANT := cortex-a75
|
|
|
|
|
2024-01-20 10:40:44 +01:00
|
|
|
# Boot control
|
|
|
|
$(call soong_config_set, ufsbsg, ufsframework, bsg)
|
|
|
|
|
2022-04-04 17:56:53 +02:00
|
|
|
# Bootloader
|
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := taro
|
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
|
|
2022-05-08 16:19:23 +02:00
|
|
|
# Filesystem
|
|
|
|
TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/configs/config.fs
|
|
|
|
|
2022-04-23 18:04:44 +02:00
|
|
|
# Metadata
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
|
|
|
|
# Partitions
|
|
|
|
BOARD_FLASH_BLOCK_SIZE := 0x020000 # (BOARD_KERNEL_PAGESIZE * 64)
|
|
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x0C000000
|
|
|
|
BOARD_DTBOIMG_PARTITION_SIZE := 0x01800000
|
|
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06400000
|
|
|
|
BOARD_SUPER_PARTITION_SIZE := 9126805504 # 0x220000000
|
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 239033364480 # 0x37A77FB000
|
|
|
|
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x06000000
|
|
|
|
|
|
|
|
BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
|
|
|
|
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor vendor_dlkm
|
|
|
|
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # 0x21FC00000 # BOARD_SUPER_PARTITION_SIZE - overhead (4MiB)
|
|
|
|
|
|
|
|
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_VENDOR_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
|
|
|
|
TARGET_COPY_OUT_ODM := odm
|
|
|
|
TARGET_COPY_OUT_PRODUCT := product
|
|
|
|
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
|
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
|
|
TARGET_COPY_OUT_VENDOR_DLKM := vendor_dlkm
|
|
|
|
|
2022-04-04 17:56:53 +02:00
|
|
|
# Platform
|
|
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
TARGET_BOARD_PLATFORM := taro
|
2018-06-28 03:14:43 +02:00
|
|
|
|
2024-01-20 10:57:12 +01:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/recovery.fstab
|
|
|
|
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := true
|
|
|
|
|
2022-05-27 12:03:27 +02:00
|
|
|
# VINTF
|
|
|
|
DEVICE_MATRIX_FILE := $(COMMON_PATH)/vintf/compatibility_matrix.xml
|
|
|
|
|
2018-06-28 03:14:43 +02:00
|
|
|
# Verified Boot
|
|
|
|
BOARD_AVB_ENABLE := true
|
2021-05-09 22:04:34 +02:00
|
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
|
2018-03-02 03:50:06 +01:00
|
|
|
BOARD_AVB_RECOVERY_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|
|
|
|
BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA2048
|
|
|
|
BOARD_AVB_RECOVERY_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
|
|
|
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1
|
2021-09-03 19:23:58 +02:00
|
|
|
BOARD_AVB_VBMETA_SYSTEM := system system_ext product
|
2018-06-28 03:14:43 +02:00
|
|
|
BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|
|
|
|
BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048
|
|
|
|
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
2024-01-20 14:48:28 +01:00
|
|
|
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 2
|
2022-02-07 08:22:22 +01:00
|
|
|
|
|
|
|
BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true
|