summaryrefslogtreecommitdiffstats
path: root/core/qcom_target.mk
diff options
context:
space:
mode:
authorChirayu Desai <chirayudesai1@gmail.com>2016-02-08 10:21:55 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-10 17:34:28 -0800
commite3f7e681aafd335ae913730dd59a0022039ffde4 (patch)
tree9ac2df46a146791867e9e873b024dfdd7d47645f /core/qcom_target.mk
parent391562eb1166e2badbb236920cf15782551cec0e (diff)
downloadbuild-e3f7e681aafd335ae913730dd59a0022039ffde4.zip
build-e3f7e681aafd335ae913730dd59a0022039ffde4.tar.gz
build-e3f7e681aafd335ae913730dd59a0022039ffde4.tar.bz2
qcom: Add support for custom device specific paths
* There are many supported devices with common trees, and they may wish to put their hals there. * Allow setting the path to the hal by using DEVICE_SPECIFIC_<component>_PATH when USE_DEVICE_SPECIFIC_<component> is true. Change-Id: I1335d322cd43440b028b51cff6023dd05e1d1024
Diffstat (limited to 'core/qcom_target.mk')
-rw-r--r--core/qcom_target.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/qcom_target.mk b/core/qcom_target.mk
index 5724a5b..941005e 100644
--- a/core/qcom_target.mk
+++ b/core/qcom_target.mk
@@ -13,8 +13,12 @@ endef
# Set device-specific HALs into project pathmap
define set-device-specific-path
-$(call project-set-path,qcom-$(2),$(strip $(if $(USE_DEVICE_SPECIFIC_$(1)), \
- $(TARGET_DEVICE_DIR)/$(2), $(3))))
+$(if $(USE_DEVICE_SPECIFIC_$(1)), \
+ $(if $(DEVICE_SPECIFIC_$(1)_PATH), \
+ $(eval path := $(DEVICE_SPECIFIC_$(1)_PATH)), \
+ $(eval path := $(TARGET_DEVICE_DIR)/$(2))), \
+ $(eval path := $(3))) \
+$(call project-set-path,qcom-$(2),$(strip $(path)))
endef
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)