build: Allow devices to specify a RIL variant
Change-Id: Ia5d35d916be358fb7be7ead6bd05cc3628b35a37
diff --git a/core/qcom_target.mk b/core/qcom_target.mk
index 5a51a13..1d2b24b 100644
--- a/core/qcom_target.mk
+++ b/core/qcom_target.mk
@@ -4,6 +4,9 @@
define qcom-set-path-variant
$(call project-set-path-variant,qcom-$(2),TARGET_QCOM_$(1)_VARIANT,hardware/qcom/$(2))
endef
+define ril-set-path-variant
+$(call project-set-path-variant,ril,TARGET_RIL_VARIANT,hardware/$(1))
+endef
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
@@ -39,6 +42,7 @@
$(call qcom-set-path-variant,GPS,gps)
$(call project-set-path,qcom-media,hardware/qcom/media-caf/$(TARGET_BOARD_PLATFORM))
$(call qcom-set-path-variant,SENSORS,sensors)
+$(call ril-set-path-variant,ril)
else
$(call project-set-path,qcom-audio,hardware/qcom/audio)
$(call qcom-set-path-variant,CAMERA,camera)
@@ -46,4 +50,5 @@
$(call qcom-set-path-variant,GPS,gps)
$(call project-set-path,qcom-media,hardware/qcom/media)
$(call qcom-set-path-variant,SENSORS,sensors)
+$(call ril-set-path-variant,ril)
endif