-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
37 lines (27 loc) · 1015 Bytes
/
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
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm8250-common
include device/xiaomi/sm8250-common/BoardConfigCommon.mk
DEVICE_PATH := device/xiaomi/umi
# Display
TARGET_SCREEN_DENSITY := 440
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):init_xiaomi_umi
TARGET_RECOVERY_DEVICE_MODULES := init_xiaomi_umi
# Kernel
TARGET_KERNEL_CONFIG += vendor/xiaomi/umi.config
# OTA assert
TARGET_OTA_ASSERT_DEVICE := umi
# PowerShare
SOONG_CONFIG_NAMESPACES += XIAOMI_POWERSHARE
SOONG_CONFIG_XIAOMI_POWERSHARE := WIRELESS_TX_ENABLE_PATH
SOONG_CONFIG_XIAOMI_POWERSHARE_WIRELESS_TX_ENABLE_PATH := /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
# Inherit from the proprietary version
include vendor/xiaomi/umi/BoardConfigVendor.mk