-
Notifications
You must be signed in to change notification settings - Fork 2
/
BoardConfig.mk
73 lines (56 loc) · 1.99 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
62
63
64
65
66
67
68
69
70
71
72
73
#
# Copyright (C) 2018-2019 The LineageOS Project
# Copyright (C) 2020 Paranoid Android
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from trinket-common
-include device/xiaomi/trinket-common/BoardConfigCommon.mk
DEVICE_PATH := device/xiaomi/ginkgo
# Audio
TARGET_PROVIDES_AUDIO_EXTNS := true
# Assert
TARGET_OTA_ASSERT_DEVICE := ginkgo,willow
# Charger
BOARD_HEALTHD_CUSTOM_CHARGER_RES := $(DEVICE_PATH)/charger/images
# Display
TARGET_SCREEN_DENSITY := 440
# DT2W
TARGET_TAP_TO_WAKE_NODE := "/proc/tp_gesture"
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
ODM_MANIFEST_WILLOW_FILES := $(DEVICE_PATH)/configs/hidl/manifest_willow.xml
ODM_MANIFEST_SKUS += willow
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_ginkgo
TARGET_RECOVERY_DEVICE_MODULES := libinit_ginkgo
# Kernel
TARGET_KERNEL_SOURCE := kernel/xiaomi/ginkgo
TARGET_KERNEL_CONFIG := vendor/ginkgo-perf_defconfig
BOARD_VENDOR_KERNEL_MODULES += \
$(DEVICE_PATH)/kernel-modules/rmnet_perf.ko \
$(DEVICE_PATH)/kernel-modules/rmnet_shs.ko
# Partitions
BOARD_CACHEIMAGE_PARTITION_SIZE := 402653184
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilt/dtbo.img
BOARD_DTBOIMG_PARTITION_SIZE := 25165824
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4831838208
BOARD_USERDATAIMAGE_PARTITION_SIZE := 52554612224
BOARD_VENDORIMAGE_PARTITION_SIZE := 1610612736
# Power
BOARD_POWER_CUSTOM_BOARD_LIB := libpower_ginkgo
# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
# Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)
# Sepolicy
#BOARD_PLAT_PUBLIC_SEPOLICY_DIR += $(DEVICE_PATH)/sepolicy/public
#BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
# Inherit from the proprietary version
-include vendor/xiaomi/ginkgo/BoardConfigVendor.mk
#-include vendor/miuicamera/common/BoardConfigVendor.mk