-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoardConfig.mk
51 lines (38 loc) · 1.22 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
#
# Copyright (C) 2018 The LineageOS Project
# Copyright (C) 2018-2021 Xioami-SDM660 Project
#
# SPDX-License-Identifier: Apache-2.0
#
include device/xiaomi/sdm660-common/BoardConfigCommon.mk
# Assert
TARGET_OTA_ASSERT_DEVICE := lavender
# AVB
BOARD_AVB_ENABLE := true
BOARD_AVB_RECOVERY_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem
BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA4096
BOARD_AVB_RECOVERY_ROLLBACK_INDEX := 1
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flag 2
# Device Path
DEVICE_PATH := device/xiaomi/lavender
# Display
TARGET_SCREEN_DENSITY := 440
# DT2W
TARGET_TAP_TO_WAKE_NODE := "/sys/touchpanel/double_tap"
# Enable System As Root even for non-A/B from P onwards
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
BOARD_KERNEL_CMDLINE += skip_initramfs rootwait ro init=/init
# Kernel
TARGET_KERNEL_CONFIG := lavender_defconfig
# Manifest
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Platform
BOARD_VENDOR_PLATFORM := xiaomi-sdm660
# Releasetools
TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_lavender
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)
# Vendor Security patch level
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# WLAN MAC
WLAN_MAC_SYMLINK := true