-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
174 lines (150 loc) · 4.15 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Include GSI keys
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
# Inherit the proprietary files, non open-source specific
$(call inherit-product, vendor/motorola/capri/capri-vendor.mk)
# TODO: Enable these things later
# # Additional native libraries
# PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \
# $(LOCAL_PATH)/configs/public.libraries.system_ext-qti.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-qti.txt
#
# # Overlays
# DEVICE_PACKAGE_OVERLAYS += \
# $(LOCAL_PATH)/overlay-lineage
#
# PRODUCT_ENFORCE_RRO_TARGETS := *
#
# PRODUCT_PACKAGES += \
# FrameworksResCommon \
# CarrierConfigResCommon \
# CellBroadcastReceiverResCommon \
# SystemUIResCommon \
# TelecommResCommon \
# TelephonyResCommon \
# WifiResCommon \
# FrameworksResTarget \
# WifiResTarget
#
# PRODUCT_PACKAGES += \
# FrameworksResNio \
# SystemUIResNio
# A/B
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
vendor_boot \
dtbo \
product \
system \
system_ext \
vendor \
vbmeta \
vbmeta_system
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
# TODO: Not present in nio, might have to remove later, lets see
# AB_OTA_POSTINSTALL_CONFIG += \
# RUN_POSTINSTALL_vendor=true \
# POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
# FILESYSTEM_TYPE_vendor=ext4 \
# POSTINSTALL_OPTIONAL_vendor=true
PRODUCT_PACKAGES += \
otapreopt_script
# checkpoint_gc
# Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# TODO: lot more here needs changes, we can correct these once we are able to
# generate images
PRODUCT_PACKAGES += \
android.hardware.boot@1.2-impl \
android.hardware.boot@1.2-impl.recovery \
android.hardware.boot@1.2-service
PRODUCT_PACKAGES += \
update_engine \
update_engine_sideload \
update_verifier
# fastbootd
PRODUCT_PACKAGES += \
android.hardware.fastboot@1.1-impl-mock \
fastbootd
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
android.hardware.health@2.1-service
# Overlays
PRODUCT_ENFORCE_RRO_TARGETS := *
# Product characteristics
PRODUCT_CHARACTERISTICS := default
# Rootdir
PRODUCT_PACKAGES += \
apanic_annotate.sh \
apanic_copy.sh \
apanic_save.sh \
hardware_revisions.sh \
init.class_main.sh \
init.crda.sh \
init.gbmods.sh \
init.mdm.sh \
init.mmi.acdb.sh \
init.mmi.block_perm.sh \
init.mmi.boot.sh \
init.mmi.laser.sh \
init.mmi.mdlog-getlogs.sh \
init.mmi.modules.sh \
init.mmi.shutdown.sh \
init.mmi.touch.sh \
init.mmi.usb.sh \
init.mmi.wlan-getlogs.sh \
init.oem.fingerprint.sh \
init.oem.fingerprint2.sh \
init.oem.hw.sh \
init.qcom.class_core.sh \
init.qcom.coex.sh \
init.qcom.early_boot.sh \
init.qcom.efs.sync.sh \
init.qcom.post_boot.sh \
init.qcom.sdio.sh \
init.qcom.sensors.sh \
init.qcom.sh \
init.qcom.usb.sh \
init.qti.chg_policy.sh \
init.qti.dcvs.sh \
init.qti.media.sh \
init.qti.qcv.sh \
pstore_annotate.sh \
qca6234-service.sh \
PRODUCT_PACKAGES += \
fstab.qcom \
init.mmi.charge_only.rc \
init.mmi.chipset.rc \
init.mmi.debug.rc \
init.mmi.diag.rc \
init.mmi.diag_mdlog.rc \
init.mmi.overlay.rc \
init.mmi.rc \
init.mmi.tcmd.rc \
init.mmi.usb.rc \
init.mmi.wlan.rc \
init.qcom.factory.rc \
init.qcom.rc \
init.qcom.usb.rc \
init.qti.ufs.rc \
init.target.rc \
init.recovery.qcom.rc \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)