-
Notifications
You must be signed in to change notification settings - Fork 2
/
device.mk
100 lines (78 loc) · 2.38 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
LOCAL_PATH := device/xiaomi/selene
# A/B
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true\
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# Enable Virtual A/B
ENABLE_VIRTUAL_AB := true
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch.mk)
# Boot control HAL
PRODUCT_PACKAGES += \
# Health HAL
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
bootctrl
PRODUCT_PACKAGES += \
bootctrl.mt6768 \
bootctrl.mt6768.recovery
PRODUCT_PACKAGES += \
create_pl_dev \
create_pl_dev.recovery
PRODUCT_PACKAGES_DEBUG += \
update_engine_client
PRODUCT_PACKAGES += \
otapreopt_script \
checkpoint_gc
PRODUCT_PACKAGES += \
update_engine \
update_engine_sideload \
update_verifier
# Vibrator modules
TARGET_RECOVERY_DEVICE_MODULES += \
android.hardware.vibrator-V2-ndk.so
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V2-ndk.so
# VNDK
PRODUCT_TARGET_VNDK_VERSION := 31
# API
PRODUCT_SHIPPING_API_LEVEL := 30
# Dynamic Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# fastbootd
PRODUCT_PACKAGES += \
fastbootd
# Additional binaries & libraries needed for recovery
TARGET_RECOVERY_DEVICE_MODULES += \
libkeymaster4 \
libkeymaster41 \
libpuresoftkeymasterdevice
TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster41.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libpuresoftkeymasterdevice.so
# Gatekeeper
PRODUCT_PACKAGES += \
# libion & libxml2
TARGET_RECOVERY_DEVICE_MODULES += \
libion \
libxml2
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so
PRODUCT_VENDOR_PROPERTIES += \
log.tag=I \
persist.log.tag=I