-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
48 lines (36 loc) · 1.18 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
#
# 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_rsa2048.pem
BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA2048
BOARD_AVB_RECOVERY_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
# Device Path
DEVICE_PATH := device/xiaomi/lavender
# 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
# Density
TARGET_SCREEN_DENSITY := 420
# 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)
# WLAN MAC
WLAN_MAC_SYMLINK := true