summaryrefslogtreecommitdiffstats
path: root/core/qcom_target.mk
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2014-11-08 23:07:16 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:36:50 -0700
commit65197d58f29c374ce72bfabf068ee8045b9f4194 (patch)
treea247aa549f4f0074509e56fd824fd189d4021f7d /core/qcom_target.mk
parent40cb2f95b09f1c81bde69d861eed7ced7c63f83c (diff)
downloadbuild-65197d58f29c374ce72bfabf068ee8045b9f4194.zip
build-65197d58f29c374ce72bfabf068ee8045b9f4194.tar.gz
build-65197d58f29c374ce72bfabf068ee8045b9f4194.tar.bz2
build: Automatically set QCOM audio, display, media variants
* Device platform should determing the HAL that ought to be used. This commit forces QCOM_HARDWARE to select the -caf HAL variants, which are then broken down by platform within the variant path. Change-Id: I6fc7a3def7b93112f034a3b89552f302727cdbf8
Diffstat (limited to 'core/qcom_target.mk')
-rw-r--r--core/qcom_target.mk32
1 files changed, 19 insertions, 13 deletions
diff --git a/core/qcom_target.mk b/core/qcom_target.mk
index ea91257..a6b572a 100644
--- a/core/qcom_target.mk
+++ b/core/qcom_target.mk
@@ -1,5 +1,10 @@
# Target-specific configuration
+# 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
+
# Enable DirectTrack on QCOM legacy boards
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
@@ -12,21 +17,22 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
endif
# Enable DirectTrack for legacy targets
- ifneq ($(filter caf bfam,$(TARGET_QCOM_AUDIO_VARIANT)),)
- ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
- TARGET_GLOBAL_CFLAGS += -DQCOM_DIRECTTRACK
- TARGET_GLOBAL_CPPFLAGS += -DQCOM_DIRECTTRACK
- endif
+ ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
+ TARGET_GLOBAL_CFLAGS += -DQCOM_DIRECTTRACK
+ TARGET_GLOBAL_CPPFLAGS += -DQCOM_DIRECTTRACK
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 project-set-path,qcom-audio,hardware/qcom/audio-caf)
$(call qcom-set-path-variant,CAMERA,camera)
-$(call qcom-set-path-variant,DISPLAY,display)
+$(call project-set-path,qcom-display,hardware/qcom/display-caf)
$(call qcom-set-path-variant,GPS,gps)
-$(call qcom-set-path-variant,MEDIA,media)
+$(call project-set-path,qcom-media,hardware/qcom/media-caf)
$(call qcom-set-path-variant,SENSORS,sensors)
+else
+$(call project-set-path,qcom-audio,hardware/qcom/audio)
+$(call qcom-set-path-variant,CAMERA,camera)
+$(call project-set-path,qcom-display,hardware/qcom/display)
+$(call qcom-set-path-variant,GPS,gps)
+$(call project-set-path,qcom-media,hardware/qcom/media)
+$(call qcom-set-path-variant,SENSORS,sensors)
+endif