-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBoardConfig.mk
51 lines (38 loc) · 1.16 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) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/xiaomi/renoir
# Inherit from sm8350-common
include device/xiaomi/sm8350-common/BoardConfigCommon.mk
# Assert
TARGET_OTA_ASSERT_DEVICE := renoir,renoir_global,renoir_jp,renoir_ru,renoir_eea_global
# Board
TARGET_BOOTLOADER_BOARD_NAME := renoir
# Camera
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/hidl/manifest.xml
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_renoir
TARGET_RECOVERY_DEVICE_MODULES := libinit_renoir
# Kernel
TARGET_KERNEL_CONFIG += vendor/renoir_QGKI.config
# Kernel modules
BOOT_KERNEL_MODULES := \
focaltech_touch.ko \
goodix_core.ko \
hwid.ko \
msm_drm.ko \
xiaomi_touch.ko
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES)
# Partitions
BOARD_DTBOIMG_PARTITION_SIZE := 25165824
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Vibrator
TARGET_QTI_VIBRATOR_EFFECT_LIB := libqtivibratoreffect.xiaomi
TARGET_QTI_VIBRATOR_USE_EFFECT_STREAM := true
# Include proprietary files
include vendor/xiaomi/renoir/BoardConfigVendor.mk