1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# 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)
TARGET_GLOBAL_CFLAGS += -DQCOM_HARDWARE
TARGET_GLOBAL_CPPFLAGS += -DQCOM_HARDWARE
ifeq ($(TARGET_USES_QCOM_BSP),true)
TARGET_GLOBAL_CFLAGS += -DQCOM_BSP
TARGET_GLOBAL_CPPFLAGS += -DQCOM_BSP
endif
# Enable DirectTrack for legacy targets
ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
TARGET_GLOBAL_CFLAGS += -DQCOM_DIRECTTRACK
TARGET_GLOBAL_CPPFLAGS += -DQCOM_DIRECTTRACK
endif
$(call project-set-path,qcom-audio,hardware/qcom/audio-caf)
$(call qcom-set-path-variant,CAMERA,camera)
$(call project-set-path,qcom-display,hardware/qcom/display-caf)
$(call qcom-set-path-variant,GPS,gps)
$(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
|