-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
114 lines (95 loc) · 2.97 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#
# Copyright (C) 2023 The Android Open Source Project
# Copyright (C) 2023 SebaUbuntu's TWRP device tree generator
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := device/qcom/taro
# 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
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# Boot control HAL
PRODUCT_PACKAGES += \
# Decryption
PRODUCT_PACKAGES += \
qcom_decrypt \
qcom_decrypt_fbe
# Dynamic partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Enable Fuse Passthrough
PRODUCT_PROPERTY_OVERRIDES += persist.sys.fuse.passthrough.enable=true
# f2fs utilities
PRODUCT_PACKAGES += \
sg_write_buffer \
f2fs_io \
check_f2fs
# fastboot/d HAL
PRODUCT_PACKAGES += fastbootd
PRODUCT_PACKAGES += [email protected]
# OTA
TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
# Recovery Modules/Binaries
TARGET_RECOVERY_DEVICE_MODULES += \
libdmabufheap \
libhidlmemory \
libion \
libnetutils \
libxml2 \
debuggerd \
strace
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SHARED_LIBRARIES)/libdmabufheap.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libhidlmemory.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libnetutils.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected]
RECOVERY_BINARY_SOURCE_FILES += \
$(TARGET_OUT_EXECUTABLES)/debuggerd \
$(TARGET_OUT_EXECUTABLES)/strace
# Relax
RELAX_USES_LIBRARY_CHECK := true
# Set GRF/Vendor freeze properties
BOARD_SHIPPING_API_LEVEL := 31
BOARD_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
# Userdata checkpoint
PRODUCT_PACKAGES += \
checkpoint_gc
# Scripts
PRODUCT_PACKAGES += \
otapreopt_script \
cppreopts.sh
# Update Engine
PRODUCT_PACKAGES += \
update_engine \
update_verifier \
update_engine_sideload
# Update Script
PRODUCT_PACKAGES += \
otapreopt_script \
cppreopts.sh
# VNDK/SDK
PRODUCT_TARGET_VNDK_VERSION := $(BOARD_SHIPPING_API_LEVEL)
BOARD_SYSTEMSDK_VERSIONS := $(BOARD_SHIPPING_API_LEVEL)