-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
57 lines (44 loc) · 1.12 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
#
# Copyright (C) 2021 The PixelExperience Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/xiaomi/mojito
# A/B
AB_OTA_UPDATER := true
BOARD_USES_RECOVERY_AS_BOOT := true
AB_OTA_PARTITIONS += \
boot \
dtbo \
odm \
product \
system \
system_ext \
vbmeta \
vbmeta_system \
vendor \
vendor_boot
# Audio
TARGET_PROVIDES_AUDIO_EXTNS := true
# Board
TARGET_BOARD_INFO_FILE := $(DEVICE_PATH)/board-info.txt
# Display
TARGET_SCREEN_DENSITY := 440
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_mojito
# Kernel
TARGET_KERNEL_CONFIG := vendor/mojito_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/mojito
TARGET_KERNEL_ADDITIONAL_FLAGS := \
LLVM=1 \
LLVM_IAS=1
# OTA assert
TARGET_OTA_ASSERT_DEVICE := mojito,sunny
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Inherit from sm6150-common
include device/xiaomi/sm6150-common/BoardConfigCommon.mk
# Inherit from the proprietary version
include vendor/xiaomi/mojito/BoardConfigVendor.mk
# Inherit from proprietary files for Leica Camera
-include vendor/xiaomi/mojito-leicacamera/BoardConfigVendor.mk