-
Notifications
You must be signed in to change notification settings - Fork 4
/
device.mk
84 lines (65 loc) · 2.2 KB
/
device.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
74
75
76
77
78
79
80
81
82
83
84
#
# Copyright (C) 2023 The Android Open Source Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/xiaomi/liuqin
# Configure base.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
# Configure core_64_bit_only.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
# Configure Virtual A/B
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
# Configure virtual_ab compression.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/compression.mk)
# Configure emulated_storage.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
# Configure twrp common.mk
$(call inherit-product, vendor/twrp/config/common.mk)
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
bootctrl.xiaomi_sm8475 \
bootctrl.xiaomi_sm8475.recovery \
# SHIPPING API
PRODUCT_SHIPPING_API_LEVEL := 32
# VNDK API
PRODUCT_TARGET_VNDK_VERSION := 33
# Dynamic partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(DEVICE_PATH)
TWRP_REQUIRED_MODULES += \
miui_prebuilt
# otacert
PRODUCT_EXTRA_RECOVERY_KEYS += \
$(DEVICE_PATH)/security/miui_releasekey
# Additional Libraries
TARGET_RECOVERY_DEVICE_MODULES += \
libion \
libxml2 \
libdisplayconfig.qti \
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libdisplayconfig.qti.so \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected]
# F2FS
PRODUCT_PACKAGES += \
mkfs.f2fs \
fsck.f2fs \
fibmap.f2fs
PRODUCT_PACKAGES += \
zip \
keycheck