summaryrefslogtreecommitdiffstats
path: root/core/qcom_target.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/qcom_target.mk')
-rw-r--r--core/qcom_target.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/qcom_target.mk b/core/qcom_target.mk
index e65a6fc..ea91257 100644
--- a/core/qcom_target.mk
+++ b/core/qcom_target.mk
@@ -19,3 +19,14 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
endif
endif
endif
+
+# Populate the qcom hardware variants in the project pathmap.
+define qcom-set-path-variant
+$(call project-set-path-variant,qcom-$(2),TARGET_QCOM_$(1)_VARIANT,hardware/qcom/$(2))
+endef
+$(call qcom-set-path-variant,AUDIO,audio)
+$(call qcom-set-path-variant,CAMERA,camera)
+$(call qcom-set-path-variant,DISPLAY,display)
+$(call qcom-set-path-variant,GPS,gps)
+$(call qcom-set-path-variant,MEDIA,media)
+$(call qcom-set-path-variant,SENSORS,sensors)