-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
50 lines (38 loc) · 1.3 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
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/xiaomi/venus
# Inherit from sm8350-common
include device/xiaomi/sm8350-common/BoardConfigCommon.mk
# Inherit from miuicamera-venus
-include device/xiaomi/miuicamera-venus/BoardConfig.mk
# Board
TARGET_BOOTLOADER_BOARD_NAME := venus
# Display
TARGET_SCREEN_DENSITY := 560
# OTA assert
TARGET_OTA_ASSERT_DEVICE := venus
# Kernel modules
BOOT_KERNEL_MODULES := \
fts_touch_spi.ko \
hwid.ko \
msm_drm.ko \
xiaomi_touch.ko
KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR)
KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko)
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_MODULE_DIR)/modules.load))
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES)
BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true
BOARD_VENDOR_KERNEL_MODULES := $(KERNEL_MODULES)
BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD)))
# Partitions
BOARD_DTBOIMG_PARTITION_SIZE := 25165824
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165
# Include proprietary files
-include vendor/xiaomi/venus/BoardConfigVendor.mk
-include vendor/xiaomi/venus-firmware/BoardConfigVendor.mk