-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.mk
387 lines (323 loc) · 14.8 KB
/
base.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
TARGET_USE_VENDOR_CAMERA_EXT := true
#skip boot jars check
SKIP_BOOT_JARS_CHECK := true
#Enable suspend during charger mode
BOARD_CHARGER_ENABLE_SUSPEND := true
# Below projects/packages with LOCAL_MODULEs will be used by
# PRODUCT_PACKAGES to build LOCAL_MODULEs that are tagged with
# optional tag, which will not be available on target unless
# explicitly list here. Where project corresponds to the vars here
# in CAPs.
#ANT
ANT := AntHalService-Soong
#ATRACE_HAL
ATRACE_HAL := [email protected]
#AUDIO_HAL
AUDIO_HAL += [email protected]
AUDIO_HAL += [email protected]
AUDIO_HAL += android.hardware.audio.service
AUDIO_HAL += [email protected]
AUDIO_HAL += [email protected]
AUDIO_HAL += audio.a2dp.default
AUDIO_HAL += audio.primary.kona
AUDIO_HAL += audio.r_submix.default
AUDIO_HAL += audio.usb.default
AUDIO_HAL += libaudio-resampler
AUDIO_HAL += audio.hearing_aid.default
AUDIO_HAL += audio.bluetooth.default
AUDIO_HAL += liba2dpoffload
AUDIO_HAL += libaudiozoom
AUDIO_HAL += libbatterylistener
AUDIO_HAL += libcirrusspkrprot
AUDIO_HAL += libcomprcapture
AUDIO_HAL += libexthwplugin
AUDIO_HAL += libhdmiedid
AUDIO_HAL += libhdmipassthru
AUDIO_HAL += libqcomvoiceprocessingdescriptors
AUDIO_HAL += libqcomvisualizer
AUDIO_HAL += libqcompostprocbundle
AUDIO_HAL += libhfp
AUDIO_HAL += libsndmonitor
AUDIO_HAL += libqcomvoiceprocessing
#BLUETOOTH_HAL
BLUETOOTH_HAL += [email protected]
BLUETOOTH_HAL += audio.bluetooth.default
BLUETOOTH_HAL += [email protected]
BLUETOOTH_HAL += [email protected]
#CAMERA
CAMERA += [email protected]
CAMERA += [email protected]_64
CAMERA += libcamera2ndk_vendor
CAMERA += libgui_vendor
CAMERA += [email protected]
CAMERA += [email protected]
CAMERA += libstdc++.vendor
CAMERA += Snap
#DATA_OS
DATA_OS := librmnetctl
#DISPLAY
DISPLAY += libtinyxml
#DRM
DRM += [email protected]
#FASTBOOTD
FASTBOOTD += fastbootd
#FOD
FOD := [email protected]_kona
#framework detect libs
PRODUCT_PACKAGES += libvndfwk_detect_jni.qti
PRODUCT_PACKAGES += libqti_vndfwk_detect
PRODUCT_PACKAGES += libvndfwk_detect_jni.qti.vendor
PRODUCT_PACKAGES += libqti_vndfwk_detect.vendor
#HEALTH
HEALTH += [email protected]
HEALTH += [email protected]
#HIDL
HIDL += libhwbinder.vendor
HIDL += [email protected]
HIDL += [email protected]
HIDL += [email protected]
HIDL += [email protected]
#HIDL_WRAPPER
HIDL_WRAPPER := qti-telephony-hidl-wrapper
HIDL_WRAPPER += qti_telephony_hidl_wrapper.xml
#HOSTAPD
HOSTAPD := hostapd
#IFAA
IFAA := org.ifaa.android.manager
IFAA_JAR := org.ifaa.android.manager
#IMS Extension module for Android Telephony
IMS_EXT := ims-ext-common
IMS_EXT += ims_ext_common.xml
#IPACM
IPACM += ipacm
IPACM += IPACM_cfg.xml
IPACM += ipacm-diag
IPACM += libipanat
IPACM += liboffloadhal
#IR
IR += [email protected]
IR += [email protected]
#LIBLIGHTS
LIBLIGHTS += lights.kona
#LIBPOWER -- Add HIDL Packages
LIBPOWER += android.hardware.power-service
LIBPOWER += android.hardware.power-impl
#LIB_XML2
LIB_XML2 := libxml2
#memtrack
LIBMEMTRACK += memtrack.kona
#LIBQDMETADATA
LIBQDMETADATA := libqdMetaData
#MEDIA
MEDIA += libavservices_minijail
MEDIA += libavservices_minijail.vendor
MEDIA += libavservices_minijail_vendor
#MM_AUDIO
MM_AUDIO += libOmxAacEnc
MM_AUDIO += libOmxAmrEnc
MM_AUDIO += libOmxEvrcEnc
MM_AUDIO += libOmxQcelp13Enc
MM_AUDIO += libOmxG711Enc
#MM_CORE
MM_CORE += libOmxCore
#MM_VIDEO
MM_VIDEO += libOmxVdec
MM_VIDEO += libOmxVenc
MM_VIDEO += libstagefrighthw
#NET
NET += netutils-wrapper-1.0
#NFC
NFC += com.android.nfc_extras
NFC += com.gsma.services.nfc
NFC += com.nxp.nfc.nq
NFC += jcos_nq_client
NFC += libnqnfc_nci_jni
NFC += ls_nq_client
NFC += nfc_nci.nqx.default.hw
NFC += nqnfcee_access.xml
NFC += NQNfcNci
NFC += nqnfcse_access.xml
NFC += se_nq_extn_client
NFC += SecureElement
NFC += Tag
NFC += [email protected]
#POWERSHARE
POWERSHARE := [email protected]_kona
#QMI
QMI := libjson
#QTI_TELEPHONY_UTILS
QTI_TELEPHONY_UTILS += qti-telephony-utils
QTI_TELEPHONY_UTILS += qti_telephony_utils.xml
#RCS
RCS += rcs_service_aidl
RCS += rcs_service_aidl.xml
RCS += rcs_service_aidl_static
RCS += rcs_service_api
RCS += rcs_service_api.xml
#RIL
RIL += libprotobuf-cpp-full
RIL += librmnetctl
#SENSOR
SENSOR += [email protected]
SENSOR += [email protected]
SENSOR += libsensorndkbridge
#TELEPHONY_EXT
TELEPHONY_EXT += telephony-ext
TELEPHONY_EXT_JAR += telephony-ext
#THERMAL_HAL
THERMAL_HAL := [email protected]
#VNDK
PRODUCT_PACKAGES += \
vndservicemanager
#WIFI
WIFI += [email protected]
WIFI += libwpa_client
WIFI += libwifi-hal-ctrl
WIFI += libwifi-hal-qcom
WIFI += [email protected]
WIFI += [email protected]
#WFD
MM_WFD += libwfdaac
MM_WFD += libwfdaac_vendor
MM_WFD += libnl
#WPA
WPA += wpa_supplicant.conf
WPA += wpa_supplicant
#XIAOMIPARTS
XIAOMIPARTS := XiaomiParts
#LLVM for RenderScript
#use qcom LLVM
$(call inherit-product-if-exists, external/llvm/llvm-select.mk)
#Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_PACKAGES += $(ANT)
PRODUCT_PACKAGES += $(ATRACE_HAL)
PRODUCT_PACKAGES += $(AUDIO_HAL)
PRODUCT_PACKAGES += $(BLUETOOTH_HAL)
PRODUCT_PACKAGES += $(CAMERA)
PRODUCT_PACKAGES += $(C2DCC)
PRODUCT_PACKAGES += $(RCS)
PRODUCT_PACKAGES += $(DATA_OS)
PRODUCT_PACKAGES += $(DISPLAY)
PRODUCT_PACKAGES += $(DRM)
PRODUCT_PACKAGES += $(FASTBOOTD)
PRODUCT_PACKAGES += $(FOD)
PRODUCT_PACKAGES += $(HEALTH)
PRODUCT_PACKAGES += $(HOSTAPD)
PRODUCT_PACKAGES += $(HIDL)
PRODUCT_PACKAGES += $(HIDL_WRAPPER)
PRODUCT_PACKAGES += $(IFAA)
PRODUCT_BOOT_JARS += $(IFAA_JAR)
PRODUCT_PACKAGES += $(IR)
PRODUCT_PACKAGES += $(LIB_XML2)
PRODUCT_PACKAGES += $(LIBMEMTRACK)
PRODUCT_PACKAGES += $(LIBLIGHTS)
PRODUCT_PACKAGES += $(LIBAUDIOPARAM)
PRODUCT_PACKAGES += $(LIBQDMETADATA)
PRODUCT_PACKAGES += $(LIBPOWER)
PRODUCT_PACKAGES += $(MEDIA)
PRODUCT_PACKAGES += $(MM_AUDIO)
PRODUCT_PACKAGES += $(MM_CORE)
PRODUCT_PACKAGES += $(MM_WFD)
PRODUCT_PACKAGES += $(MM_VIDEO)
PRODUCT_PACKAGES += $(NET)
PRODUCT_PACKAGES += $(NFC)
PRODUCT_PACKAGES += $(POWERSHARE)
PRODUCT_PACKAGES += $(QMI)
PRODUCT_PACKAGES += $(QTI_TELEPHONY_UTILS)
PRODUCT_PACKAGES += $(RIL)
PRODUCT_PACKAGES += $(SENSOR)
PRODUCT_PACKAGES += $(TELEPHONY_EXT)
PRODUCT_BOOT_JARS += $(TELEPHONY_EXT_JAR)
PRODUCT_PACKAGES += $(THERMAL_HAL)
PRODUCT_PACKAGES += $(WIFI)
PRODUCT_PACKAGES += $(WPA)
PRODUCT_PACKAGES += $(XIAOMIPARTS)
PRODUCT_PACKAGES += $(IPACM)
PRODUCT_PACKAGES += $(IMS_EXT)
# MSM updater library
PRODUCT_PACKAGES += librecovery_updater_msm
# QTI common
TARGET_BOARD_PLATFORM := kona
TARGET_COMMON_QTI_COMPONENTS := \
av \
bt \
display \
overlay \
perf \
telephony \
usb \
wfd
PRODUCT_COPY_FILES := \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml\
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml\
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
# gps/location secuity configuration file
PRODUCT_COPY_FILES += \
device/xiaomi/cmi/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
#copy codecs_xxx.xml to (TARGET_COPY_OUT_VENDOR)/etc/
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml \
#copy of audio_config
PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml
# Copy the vulkan feature level file.
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml
ifeq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_DEFAULT_PROPERTY_OVERRIDES+= \
ro.adb.secure=1
endif
PRODUCT_PROPERTY_OVERRIDES += persist.radio.multisim.config=dsds
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
vendor.usb.diag.func.name=diag
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.qcomsysd.enabled=1