blob: 22bc3eda8b404e5b870ee252ea44c2baf93a6154 [file] [log] [blame]
Bharath756d7dd2021-08-07 23:53:55 +05301# Copyright 2021-2022 Fairphone B.V.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16FP_PATH := device/fairphone/FP3
17
18# Call the vendor setup
19$(call inherit-product-if-exists, vendor/fairphone/fp3-common/device-vendor.mk)
20
21$(call inherit-product, build/make/target/product/product_launched_with_p.mk)
22
23$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
24
25$(call inherit-product, device/fairphone/fp3-common/common/common64.mk)
26
27PRODUCT_NAME := FP3
28PRODUCT_DEVICE := FP3
29PRODUCT_MODEL := FP3
30PRODUCT_MANUFACTURER := Fairphone
31PRODUCT_BRAND := Fairphone
32
33
34# Allow using custom and expressive names for our Android flavors while in fact
35# targeting the same model with all of them.
36PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_MODEL=FP3 PRODUCT_NAME=FP3
37
38# vendor/qcom/proprietary/common/config/device-vendor.mk --> PRODUCT_LIST
39TARGET_BASE_PRODUCT := FP3
40TARGET_VENDOR := fairphone
41
42TARGET_SYSTEM_PROP := device/$(TARGET_VENDOR)/$(PRODUCT_NAME)/system.prop
43
44
45# We don't have the calibration data as this sort of
46# data can only be generated at the factory so don't generate persist.img
47FP3_SKIP_PERSIST_IMG := true
48
49# Overlays
50DEVICE_PACKAGE_OVERLAYS += \
51 $(LOCAL_PATH)/overlay
52
53
54# A/B related defines
55AB_OTA_UPDATER := true
56AB_OTA_PARTITIONS += \
57 boot \
58 dtbo \
59 system \
60 vbmeta \
61 vendor
62
63
64AB_OTA_POSTINSTALL_CONFIG += \
65 RUN_POSTINSTALL_vendor=true \
66 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
67 FILESYSTEM_TYPE_vendor=ext4 \
68 POSTINSTALL_OPTIONAL_vendor=true
69
70PRODUCT_PACKAGES += \
71 checkpoint_gc \
72 update_engine_sideload
73
74
75# AVB
76BOARD_AVB_ENABLE := true
77
78
79# Additional native libraries
80PRODUCT_COPY_FILES += \
81 $(FP_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
82
83
84# Atrace HAL
85PRODUCT_PACKAGES += \
86 android.hardware.atrace@1.0-service
87
88
89# Audio
90# AV Enhancement
91TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
92
93
94PRODUCT_PACKAGES += \
95 android.hardware.audio@6.0 \
96 android.hardware.audio.common@6.0 \
97 android.hardware.audio.common@6.0-util \
98 android.hardware.audio@6.0-impl:32 \
99 android.hardware.audio.effect@6.0 \
100 android.hardware.audio.effect@6.0-impl:32 \
101 android.hardware.audio.service \
102 android.hardware.soundtrigger@2.1-impl \
103 audio.a2dp.default \
104 audio.primary.msm8953 \
105 audio.r_submix.default \
106 audio.usb.default \
107 libaacwrapper \
108 libaudio-resampler \
109 libautohal \
110 libqcompostprocbundle \
111 libqcomvisualizer \
112 libqcomvoiceprocessing \
113 libvolumelistener \
114 tinymix
115
116
117AUDIO_HAL_PATH := vendor/qcom/opensource/audio-hal/primary-hal
118
119# Audio files
120PRODUCT_COPY_FILES += \
121 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
122 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
123 $(AUDIO_HAL_PATH)/configs/msm8953/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
124 $(AUDIO_HAL_PATH)/configs/msm8953/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
125 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
126 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku3_tasha.xml \
127 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_sku4.xml \
128 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tasha.xml \
129 $(AUDIO_HAL_PATH)/configs/msm8953/audio_platform_info_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_tashalite.xml \
130 $(AUDIO_HAL_PATH)/configs/msm8953/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
131 $(AUDIO_HAL_PATH)/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
132 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
133 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
134 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku3_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku3_tasha.xml \
135 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_sku4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_sku4.xml \
136 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \
137 $(AUDIO_HAL_PATH)/configs/msm8953/mixer_paths_tashalite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tashalite.xml \
138 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
139 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9306.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9306.xml \
140 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \
141 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_mixer_paths_wcd9335.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9335.xml \
142 $(AUDIO_HAL_PATH)/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
143
144
145# Audio config files
146PRODUCT_COPY_FILES += \
147 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
148 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
149 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
150 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
151 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
152 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
153
154# Custom config files
155PRODUCT_COPY_FILES += \
156 $(FP_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
157
158
159# Audio firmware files
160PRODUCT_COPY_FILES += \
161 $(FP_PATH)/aw/aw8898_cfg.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/aw8898_cfg.bin \
162 $(FP_PATH)/tas2557_fw/OBO_0617_music.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557_uCDSP.bin \
163 $(FP_PATH)/tas2557_fw/tas2557evm_OBO_0617.ftcfg:$(TARGET_COPY_OUT_VENDOR)/firmware/tas2557evm_aacspk_a.ftcfg
164
165
166# Audio Specific device overlays
167DEVICE_PACKAGE_OVERLAYS += $(AUDIO_HAL_PATH)/configs/common/overlay
168
169
170# Audio Specific properties
171# Properties
172-include $(LOCAL_PATH)/audio_properties.mk
173
174
175# Audio Kernel modules
176AUDIO_DLKM := audio_apr.ko
177AUDIO_DLKM += audio_q6_notifier.ko
178AUDIO_DLKM += audio_adsp_loader.ko
179AUDIO_DLKM += audio_q6.ko
180AUDIO_DLKM += audio_usf.ko
181AUDIO_DLKM += audio_pinctrl_wcd.ko
182AUDIO_DLKM += audio_swr.ko
183AUDIO_DLKM += audio_wcd_core.ko
184AUDIO_DLKM += audio_swr_ctrl.ko
185AUDIO_DLKM += audio_wsa881x.ko
186AUDIO_DLKM += audio_wsa881x_analog.ko
187AUDIO_DLKM += audio_platform.ko
188AUDIO_DLKM += audio_cpe_lsm.ko
189AUDIO_DLKM += audio_hdmi.ko
190AUDIO_DLKM += audio_stub.ko
191AUDIO_DLKM += audio_wcd9xxx.ko
192AUDIO_DLKM += audio_mbhc.ko
193AUDIO_DLKM += audio_wcd9335.ko
194AUDIO_DLKM += audio_wcd_cpe.ko
195AUDIO_DLKM += audio_digital_cdc.ko
196AUDIO_DLKM += audio_analog_cdc.ko
197AUDIO_DLKM += audio_native.ko
198AUDIO_DLKM += audio_machine_sdm450.ko
199AUDIO_DLKM += audio_machine_ext_sdm450.ko
200PRODUCT_PACKAGES += $(AUDIO_DLKM)
201
202
Bharathfe661fb2021-08-16 18:56:32 +0530203# ANT
204PRODUCT_PACKAGES += \
205 AntHalService \
206 antradio_app \
207 com.dsi.ant@1.0 \
208 libantradio
209
Bharath756d7dd2021-08-07 23:53:55 +0530210# Bluetooth
Bharathfe661fb2021-08-16 18:56:32 +0530211PRODUCT_PACKAGES += \
212 libbt-vendor \
213 audio.bluetooth.default \
214 android.hardware.bluetooth.audio@2.0-impl \
215 android.hardware.bluetooth@1.0 \
216 vendor.qti.hardware.bluetooth_audio@2.0 \
217 vendor.qti.hardware.bluetooth_audio@2.1.vendor \
218 vendor.qti.hardware.btconfigstore@1.0.vendor
219
220# Bluetooth Permissions
221PRODUCT_COPY_FILES += \
222 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
223 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
Bharath756d7dd2021-08-07 23:53:55 +0530224
225
226# Boot
227PRODUCT_PACKAGES += \
228 android.hardware.boot@1.0-impl \
229 android.hardware.boot@1.0-impl.recovery \
230 android.hardware.boot@1.0-service \
231 bootctrl.msm8953 \
232 update_engine \
233 update_engine_client \
234 update_engine_sideload \
235 update_verifier
236
237
238# Boot animation
239TARGET_SCREEN_HEIGHT := 2160
240TARGET_SCREEN_WIDTH := 1080
241
242
243PRODUCT_COPY_FILES += \
244 vendor/fairphone/media/bootanimation/bootanimation.zip:$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
245
246
247# Camera
248
249
250# Component overrides
251# TODO: Check if this is required.
252#PRODUCT_COPY_FILES += \
253 $(FP_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
254
255
256# Display
257PRODUCT_PACKAGES += \
258 android.hardware.graphics.allocator@2.0-impl \
259 android.hardware.graphics.allocator@2.0-service \
260 android.hardware.graphics.composer@2.1-service \
261 android.hardware.graphics.mapper@2.0-impl-2.1 \
262 android.hardware.memtrack@1.0-impl \
263 android.hardware.memtrack@1.0-service \
264 gralloc.default \
265 gralloc.msm8953 \
266 hwcomposer.msm8953 \
267 memtrack.msm8953 \
268 libdisplayconfig \
269 libqdutils \
270 libqdMetaData \
271 libvulkan \
272 vendor.qti.hardware.display.composer@3.0
273
274
275# Vendor Display
276# Disable skip validate
277PRODUCT_PROPERTY_OVERRIDES += \
278 vendor.display.disable_skip_validate=1
279
280
281# Display Properties
282PRODUCT_AAPT_CONFIG := normal
283PRODUCT_AAPT_PREF_CONFIG := xxhdpi
284
285
286# DRM
287PRODUCT_PACKAGES += \
288 android.hardware.drm@1.3-service.clearkey
289
290
291# Enable vndk-sp Libraries
292PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
293TARGET_USES_MKE2FS := true
294
295PRODUCT_PACKAGES += \
296 vndk_package
297
298
299# Encryption
300PRODUCT_PROPERTY_OVERRIDES += ro.crypto.allow_encrypt_override=true
301PRODUCT_PROPERTY_OVERRIDES += ro.crypto.volume.filenames_mode=aes-256-cts
302
303
304# FBE support
305PRODUCT_COPY_FILES += \
306 $(FP_PATH)/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
307
308
309# Framework Detect
310PRODUCT_PACKAGES += \
311 libqti_vndfwk_detect \
312 libqti_vndfwk_detect.vendor \
313 libvndfwk_detect_jni.qti \
314 libvndfwk_detect_jni.qti.vendor \
315 vndservicemanager
316
317
318# HIDL
319PRODUCT_PACKAGES += \
320 android.hidl.base@1.0 \
321 libhidltransport \
322 libhidltransport.vendor \
323 libhwbinder \
324 libhwbinder.vendor
325
326
327# Health
328PRODUCT_PACKAGES += \
329 android.hardware.health@2.1-impl \
330 android.hardware.health@2.1-impl.recovery \
331 android.hardware.health@2.1-service
332
333# IMS
334PRODUCT_PACKAGES += \
335 ims-ext-common \
336 ims_ext_common.xml \
337 ConfURIDialer
338
339# IPACM
340PRODUCT_PACKAGES += \
341 ipacm \
342 IPACM_cfg.xml \
343 libipanat \
344 liboffloadhal \
345 libqsap_sdk
346
347# IRQ
348PRODUCT_COPY_FILES += \
349 $(FP_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
350 $(FP_PATH)/configs/msm_irqbalance_little_big.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance_little_big.conf
351
352
353# Kernel modules
354# Kernel modules install path
355KERNEL_MODULES_INSTALL := dlkm
356KERNEL_MODULES_OUT := out/target/product/$(PRODUCT_NAME)/$(KERNEL_MODULES_INSTALL)/lib/modules
357
358
359# LED packages
360PRODUCT_PACKAGES += \
361 android.hardware.light@2.0-impl \
362 android.hardware.light@2.0-service \
363 lights.msm8953
364
365
366# Media / StagefrightCodec 2.0
367PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0
368
369
370# NFC
371
372
373# OMX
374PRODUCT_PACKAGES += \
375 libavservices_minijail.vendor \
376 libc2dcolorconvert \
377 libOmxAacEnc \
378 libOmxAmrEnc \
379 libOmxCore \
380 libOmxEvrcEnc \
381 libOmxQcelp13Enc \
382 libOmxVdec \
383 libOmxVenc \
384 libqomx_core \
385 libaacwrapper \
386 libmm-omxcore \
387 libstagefrighthw \
388 libstagefright_softomx.vendor
389
390
391#
392# system prop for opengles version
393#
394# 196608 is decimal for 0x30000 to report major/minor versions as 3/0
395# 196609 is decimal for 0x30001 to report major/minor versions as 3/1
396# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
397PRODUCT_PROPERTY_OVERRIDES += \
398 ro.opengles.version=196610
399
400
401# Perf
402PRODUCT_COPY_FILES += \
403 $(FP_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
404
405
406# Power
407PRODUCT_PACKAGES += \
408 android.hardware.power@1.0-impl \
409 android.hardware.power@1.0-service \
410 power.qcom
411
412
413# Feature flags
414PRODUCT_COPY_FILES += \
415 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
416 frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
417 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
418 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
419 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
420 frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
421 frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_0_3.xml \
422 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
423 frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml \
424 frameworks/native/data/etc/android.software.vulkan.deqp.level-2019-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level-2019-03-01.xml \
425 frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
426 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
427 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
428
429
430# privapp-permissions whitelisting
431PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce
432
433
434# Protobuf
435PRODUCT_PACKAGES += \
436 libprotobuf-cpp-full \
437 libprotobuf-cpp-full-vendorcompat \
438 libprotobuf-cpp-lite-vendorcompat
439
440
441# RIL properties
442PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
443PRODUCT_PROPERTY_OVERRIDES += vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
444#vendor prop to disable advanced network scanning
445PRODUCT_PROPERTY_OVERRIDES += \
446 persist.vendor.radio.enableadvancedscan=false
447
448
449# RenderScript
450PRODUCT_PACKAGES += \
451 android.hardware.renderscript@1.0-impl
452
453
454# SDCard
455# default is nosdcard, S/W button enabled in resource
456PRODUCT_CHARACTERISTICS := nosdcard
457
458
459# Seccomp
460PRODUCT_COPY_FILES += \
461 $(FP_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
462 $(FP_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
463
464
465# System helper
466PRODUCT_PACKAGES += \
467 vendor.qti.hardware.systemhelper@1.0
468
469
470# Service tracker
471PRODUCT_PACKAGES += \
472 vendor.qti.hardware.servicetracker@1.2.vendor
473
474
475# Telephony Permissions
476
477
478# Thermal
479PRODUCT_PACKAGES += \
480 android.hardware.thermal@1.0-impl \
481 android.hardware.thermal@1.0-service
482
483
484# Tinyxml
485PRODUCT_PACKAGES += \
486 libtinyxml
487
488# USB
489PRODUCT_PACKAGES += \
490 android.hardware.usb@1.0-service
491
492-include vendor/qcom/opensource/usb/vendor_product.mk
493
494
495# Vendor move
496PRODUCT_VENDOR_MOVE_ENABLED := true
497
498
499# Vibrator
500PRODUCT_PACKAGES += \
501 android.hardware.vibrator@1.0-impl \
502 android.hardware.vibrator@1.0-service
503
504
Bharathed255712021-08-14 20:37:05 +0530505# WiFi
506# WLAN drivers
507PRODUCT_COPY_FILES += \
508 $(FP_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
509 $(FP_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_wlan_dictionary.dat \
510 $(FP_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin # From Android 10
511
512# Flag to check if wcnss_service is built from source
513TARGET_USE_WCNSS_HAL := false
514
515# If building from source then drop proprietary dependency
516ifeq ($(TARGET_USE_WCNSS_HAL),true)
517TARGET_USES_QCOM_WCNSS_QMI := false
518endif
519
520# WiFi HAL
521PRODUCT_PACKAGES += \
522 android.hardware.wifi@1.0-service
523
524# WiFi Components
525PRODUCT_PACKAGES += \
526 hostapd \
527 hostapd.accept \
528 hostapd.deny \
529 hostapd_cli \
530 hostapd_default.conf \
531 libnl \
532 libqsap_sdk \
533 libwcnss_qmi \
534 libwifi-hal-qcom \
535 libwpa_client \
536 p2p_supplicant_overlay.conf \
537 vendor.qti.hardware.wifi.supplicant@1.0.vendor \
538 wcnss_service \
539 wificond \
540 wpa_cli \
541 wpa_supplicant.conf \
542 wpa_supplicant \
543 wpa_supplicant_overlay.conf \
544 WifiOverlay \
545 TetheringConfigOverlay
546
547
Bharath756d7dd2021-08-07 23:53:55 +0530548# Call the proprietary setup
549# Call this in the end so that flags if required can be utilized.
550$(call inherit-product, device/fairphone/fp3-proprietary/device-vendor.mk)
551
552###################################################################################
553# This is the End of target.mk file.
554# Now, Pickup other split product.mk files:
555###################################################################################
556$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-product-system.mk)
557$(call inherit-product-if-exists, vendor/qcom/opensource/commonsys-intf/display/config/display-interfaces-product.mk)
558$(call inherit-product-if-exists, vendor/qcom/opensource/usb/vendor_product.mk)
559$(call inherit-product-if-exists, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
560###################################################################################