summaryrefslogtreecommitdiffstats
path: root/core/qcom_target.mk
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2016-03-28 15:29:28 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-05 15:31:42 -0700
commitf994a23561991d5b315d1fed08553b58af29330f (patch)
tree5fbae1b0d31428cd83279dc7ab85af912221defd /core/qcom_target.mk
parent85fe6388fec3c57726e84724d565ce793990f4bc (diff)
downloadbuild-f994a23561991d5b315d1fed08553b58af29330f.zip
build-f994a23561991d5b315d1fed08553b58af29330f.tar.gz
build-f994a23561991d5b315d1fed08553b58af29330f.tar.bz2
qcom: Allow usage of default QC HAL paths
Change-Id: Icbeaa995047289b5e10cdebf805f8bd8cb7978b1
Diffstat (limited to 'core/qcom_target.mk')
-rw-r--r--core/qcom_target.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/qcom_target.mk b/core/qcom_target.mk
index 092d832..e38378d 100644
--- a/core/qcom_target.mk
+++ b/core/qcom_target.mk
@@ -69,6 +69,21 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
endif
endif
+# HACK: check to see if build uses standard QC HAL paths by checking for CM path structure
+AOSP_VARIANT_MAKEFILE := $(wildcard hardware/qcom/audio/default/Android.mk)
+ifeq ("$(AOSP_VARIANT_MAKEFILE)","")
+$(call project-set-path,qcom-audio,hardware/qcom/audio)
+$(call project-set-path,qcom-display,hardware/qcom/display)
+$(call project-set-path,qcom-media,hardware/qcom/media)
+$(call set-device-specific-path,CAMERA,camera,hardware/qcom/camera)
+$(call set-device-specific-path,GPS,gps,hardware/qcom/gps)
+$(call set-device-specific-path,SENSORS,sensors,hardware/qcom/sensors)
+$(call set-device-specific-path,LOC_API,loc-api,vendor/qcom/opensource/location)
+$(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource/dataservices)
+$(call project-set-path,ril,hardware/ril)
+$(call project-set-path,wlan,hardware/qcom/wlan)
+$(call project-set-path,bt,hardware/qcom/bt)
+else
$(call project-set-path,qcom-audio,hardware/qcom/audio-caf/$(QCOM_HARDWARE_VARIANT))
ifeq ($(SONY_BF64_KERNEL_VARIANT),true)
@@ -88,6 +103,7 @@ $(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource
$(call ril-set-path-variant,ril)
$(call wlan-set-path-variant,wlan-caf)
$(call bt-vendor-set-path-variant,bt-caf)
+endif # AOSP_VARIANT_MAKEFILE
else