Arvind Singh | 3997fea | 2020-02-20 17:06:55 +0530 | [diff] [blame] | 1 | define wlan-set-path-variant |
Bharath | cf4c7d3 | 2020-10-23 13:05:51 +0530 | [diff] [blame] | 2 | $(call project-set-path-variant,qcom-wlan,TARGET_WLAN_VARIANT,hardware/qcom/wlan) |
Arvind Singh | 3997fea | 2020-02-20 17:06:55 +0530 | [diff] [blame] | 3 | endef |
| 4 | |
Author Vivekbalachandar M | 216f6b1 | 2020-02-20 17:11:41 +0530 | [diff] [blame] | 5 | define bt-vendor-set-path-variant |
Bharath | cf4c7d3 | 2020-10-23 13:05:51 +0530 | [diff] [blame] | 6 | $(call project-set-path-variant,qcom-bt-vendor,TARGET_BT_VENDOR_VARIANT,hardware/qcom/bt) |
Author Vivekbalachandar M | 216f6b1 | 2020-02-20 17:11:41 +0530 | [diff] [blame] | 7 | endef |
| 8 | |
Vivekbalachandar M | b6e5dbf | 2020-02-17 12:15:26 +0530 | [diff] [blame] | 9 | include $(TOPDIR)vendor/fairphone/fp2/pathmap.mk |
| 10 | |
| 11 | # Set device-specific HALs into project pathmap |
| 12 | define 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))) |
| 19 | endef |
| 20 | |
Vivekbalachandar M | b6e5dbf | 2020-02-17 12:15:26 +0530 | [diff] [blame] | 21 | $(call set-device-specific-path,AUDIO,audio,hardware/qcom/audio) |
Vivekbalachandar M | b238d16 | 2020-03-06 17:04:05 +0530 | [diff] [blame] | 22 | $(call set-device-specific-path,CAMERA,camera,hardware/qcom/camera) |
Vivekbalachandar M | b6e5dbf | 2020-02-17 12:15:26 +0530 | [diff] [blame] | 23 | $(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 Prabhu | 83c96f9 | 2020-03-22 14:21:48 +0530 | [diff] [blame] | 26 | $(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource/dataservices) |
Vivekbalachandar M | b6e5dbf | 2020-02-17 12:15:26 +0530 | [diff] [blame] | 27 | $(call set-device-specific-path,POWER,power,hardware/qcom/power) |
| 28 | $(call set-device-specific-path,THERMAL,thermal,hardware/qcom/thermal) |
| 29 | |
Arvind Singh | 3997fea | 2020-02-20 17:06:55 +0530 | [diff] [blame] | 30 | $(call wlan-set-path-variant,wlan) |
| 31 | PRODUCT_CFI_INCLUDE_PATHS += \ |
| 32 | hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib |
| 33 | |
Author Vivekbalachandar M | 216f6b1 | 2020-02-20 17:11:41 +0530 | [diff] [blame] | 34 | $(call bt-vendor-set-path-variant,hardware/qcom/bt) |