blob: 0690380b65317a85939a480402f2c6faedc46f90 [file] [log] [blame]
Arvind Singh3997fea2020-02-20 17:06:55 +05301define wlan-set-path-variant
Bharathcf4c7d32020-10-23 13:05:51 +05302$(call project-set-path-variant,qcom-wlan,TARGET_WLAN_VARIANT,hardware/qcom/wlan)
Arvind Singh3997fea2020-02-20 17:06:55 +05303endef
4
Author Vivekbalachandar M216f6b12020-02-20 17:11:41 +05305define bt-vendor-set-path-variant
Bharathcf4c7d32020-10-23 13:05:51 +05306$(call project-set-path-variant,qcom-bt-vendor,TARGET_BT_VENDOR_VARIANT,hardware/qcom/bt)
Author Vivekbalachandar M216f6b12020-02-20 17:11:41 +05307endef
8
Vivekbalachandar Mb6e5dbf2020-02-17 12:15:26 +05309include $(TOPDIR)vendor/fairphone/fp2/pathmap.mk
10
11# Set device-specific HALs into project pathmap
12define set-device-specific-path
13$(if $(USE_DEVICE_SPECIFIC_$(1)), \
14 $(if $(DEVICE_SPECIFIC_$(1)_PATH), \
15 $(eval path := $(DEVICE_SPECIFIC_$(1)_PATH)), \
16 $(eval path := $(TARGET_DEVICE_DIR)/$(2))), \
17 $(eval path := $(3))) \
18$(call project-set-path,qcom-$(2),$(strip $(path)))
19endef
20
Vivekbalachandar Mb6e5dbf2020-02-17 12:15:26 +053021$(call set-device-specific-path,AUDIO,audio,hardware/qcom/audio)
Vivekbalachandar Mb238d162020-03-06 17:04:05 +053022$(call set-device-specific-path,CAMERA,camera,hardware/qcom/camera)
Vivekbalachandar Mb6e5dbf2020-02-17 12:15:26 +053023$(call set-device-specific-path,DISPLAY,display,hardware/qcom/display)
24$(call set-device-specific-path,MEDIA,media,hardware/qcom/media)
25$(call set-device-specific-path,GPS,gps,hardware/qcom/gps)
Tejashwini Prabhu83c96f92020-03-22 14:21:48 +053026$(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource/dataservices)
Vivekbalachandar Mb6e5dbf2020-02-17 12:15:26 +053027$(call set-device-specific-path,POWER,power,hardware/qcom/power)
28$(call set-device-specific-path,THERMAL,thermal,hardware/qcom/thermal)
29
Arvind Singh3997fea2020-02-20 17:06:55 +053030$(call wlan-set-path-variant,wlan)
31PRODUCT_CFI_INCLUDE_PATHS += \
32 hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib
33
Author Vivekbalachandar M216f6b12020-02-20 17:11:41 +053034$(call bt-vendor-set-path-variant,hardware/qcom/bt)