-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
59 lines (45 loc) · 1.7 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm6225-common
include device/motorola/sm6225-common/BoardConfigCommon.mk
DEVICE_PATH := device/motorola/rhode
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := rhode
# Display
TARGET_SCREEN_DENSITY := 400
# HIDL
ODM_MANIFEST_SKUS += b
ODM_MANIFEST_B_FILES := $(DEVICE_PATH)/sku/manifest_b.xml
# Kernel
TARGET_KERNEL_CONFIG += vendor/ext_config/rhode-default.config
# Kernel Modules - vendor_dlkm partition
BOARD_USES_VENDOR_DLKMIMAGE := true
BOARD_MOTO_DYNAMIC_PARTITIONS_PARTITION_LIST += vendor_dlkm
BOARD_VENDOR_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_COPY_OUT_VENDOR_DLKM := vendor_dlkm
AB_OTA_PARTITIONS += vendor_dlkm
# Kernel Modules - Vendor Boot
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/vendor_boot.modules.load))
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD)
# Partitions
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
BOARD_USES_RECOVERY_AS_BOOT := true
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 105
# Security patch level
BOOT_SECURITY_PATCH := 2024-09-01
VENDOR_SECURITY_PATCH := 2024-09-01
# Verified Boot
BOARD_AVB_ROLLBACK_INDEX := 21
BOARD_AVB_VBMETA_SYSTEM := system system_ext product
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 := 21
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 2
# Inherit from the proprietary version
include vendor/motorola/rhode/BoardConfigVendor.mk