-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathBoardConfig.mk
61 lines (46 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm6150-common
include device/xiaomi/sm6150-common/BoardConfigCommon.mk
DEVICE_PATH := device/xiaomi/davinci
# Assert
TARGET_OTA_ASSERT_DEVICE := davinci,davinciin
# Audio
AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
BOARD_USES_ALSA_AUDIO := true
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
$(foreach sku, CN GLOBAL, \
$(eval ODM_MANIFEST_SKUS += $(sku)) \
$(eval ODM_MANIFEST_$(sku)_FILES += \
$(DEVICE_PATH)/configs/hidl/manifest-nfc.xml))
# Kernel
TARGET_KERNEL_CONFIG += vendor/davinci.config
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
BOARD_DTBOIMG_PARTITION_SIZE := 33554432
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_SUPER_PARTITION_CUST_DEVICE_SIZE := 1073741824
BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE := 3758096384
BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE := 1610612736
BOARD_SUPER_PARTITION_SIZE := 6442450944
BOARD_SUPER_PARTITION_BLOCK_DEVICES := cust system vendor
BOARD_SUPER_PARTITION_METADATA_DEVICE := system
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 6438256640 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Screen density
TARGET_SCREEN_DENSITY := 440
# Udfps
TARGET_SURFACEFLINGER_UDFPS_LIB := //hardware/xiaomi:libudfps_extension.xiaomi
TARGET_USES_FOD_ZPOS := true
# Vendor security patch level
VENDOR_SECURITY_PATCH := 2021-10-01
# Inherit from proprietary files
include vendor/xiaomi/davinci/BoardConfigVendor.mk