forked from LineageOS/android_device_motorola_guam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
53 lines (39 loc) · 1.41 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
#
# 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/guam
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := guam
# Display
TARGET_SCREEN_DENSITY := 280
# HIDL
ODM_MANIFEST_SKUS += b f
ODM_MANIFEST_B_FILES := $(DEVICE_PATH)/sku/manifest_b.xml
ODM_MANIFEST_F_FILES := $(DEVICE_PATH)/sku/manifest_f.xml
# Kernel
BOARD_BOOT_HEADER_VERSION := 2
TARGET_KERNEL_CONFIG += vendor/ext_config/guam-default.config
# Kernel Modules - Recovery
BOARD_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
RECOVERY_KERNEL_MODULES := $(BOARD_RECOVERY_KERNEL_MODULES_LOAD)
# Partitions
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 104857600
BOARD_USERDATAIMAGE_PARTITION_SIZE := 50616843776
BOARD_SUPER_PARTITION_SIZE := 9763291136
BOARD_MOTO_DYNAMIC_PARTITIONS_SIZE := 4877451264 # (BOARD_SUPER_PARTITION_SIZE / 2) - 4MB
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
TARGET_RECOVERY_DENSITY := hdpi
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 43
# Security patch level
BOOT_SECURITY_PATCH := 2022-09-01
VENDOR_SECURITY_PATCH := 2022-09-01
# Verified Boot
BOARD_AVB_ROLLBACK_INDEX := 20
# Inherit from the proprietary version
include vendor/motorola/guam/BoardConfigVendor.mk