Steve Kondik | 7d3ab39 | 2013-12-28 15:48:20 -0800 | [diff] [blame] | 1 | # Target-specific configuration |
| 2 | |
Ethan Chen | 05f1848 | 2014-11-08 23:07:16 -0800 | [diff] [blame] | 3 | # Populate the qcom hardware variants in the project pathmap. |
| 4 | define qcom-set-path-variant |
| 5 | $(call project-set-path-variant,qcom-$(2),TARGET_QCOM_$(1)_VARIANT,hardware/qcom/$(2)) |
| 6 | endef |
| 7 | |
Steve Kondik | 7d3ab39 | 2013-12-28 15:48:20 -0800 | [diff] [blame] | 8 | ifeq ($(BOARD_USES_QCOM_HARDWARE),true) |
| 9 | |
Ethan Chen | 5c5f559 | 2014-12-15 18:44:31 -0800 | [diff] [blame] | 10 | qcom_flags := -DQCOM_HARDWARE |
| 11 | qcom_flags += -DQCOM_BSP |
Steve Kondik | 7d3ab39 | 2013-12-28 15:48:20 -0800 | [diff] [blame] | 12 | |
Ethan Chen | 84c7270 | 2014-11-10 14:34:48 -0800 | [diff] [blame] | 13 | TARGET_USES_QCOM_BSP := true |
Ethan Chen | 84c7270 | 2014-11-10 14:34:48 -0800 | [diff] [blame] | 14 | TARGET_ENABLE_QC_AV_ENHANCEMENTS := true |
Steve Kondik | 7d3ab39 | 2013-12-28 15:48:20 -0800 | [diff] [blame] | 15 | |
| 16 | # Enable DirectTrack for legacy targets |
Ethan Chen | 84c7270 | 2014-11-10 14:34:48 -0800 | [diff] [blame] | 17 | ifneq ($(filter msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) |
Ethan Chen | 5c5f559 | 2014-12-15 18:44:31 -0800 | [diff] [blame] | 18 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) |
| 19 | qcom_flags += -DQCOM_DIRECTTRACK |
| 20 | endif |
Michael Bestas | eb25328 | 2014-12-09 07:28:17 +0100 | [diff] [blame] | 21 | # Enable legacy graphics functions |
Ethan Chen | 5c5f559 | 2014-12-15 18:44:31 -0800 | [diff] [blame] | 22 | qcom_flags += -DQCOM_BSP_LEGACY |
Ethan Chen | 84c7270 | 2014-11-10 14:34:48 -0800 | [diff] [blame] | 23 | endif |
Tom Marshall | 7754785 | 2014-09-18 09:45:33 -0700 | [diff] [blame] | 24 | |
Ethan Chen | 5c5f559 | 2014-12-15 18:44:31 -0800 | [diff] [blame] | 25 | TARGET_GLOBAL_CFLAGS += $(qcom_flags) |
| 26 | TARGET_GLOBAL_CPPFLAGS += $(qcom_flags) |
Ethan Chen | fd42f22 | 2014-12-15 18:45:19 -0800 | [diff] [blame] | 27 | CLANG_TARGET_GLOBAL_CFLAGS += $(qcom_flags) |
| 28 | CLANG_TARGET_GLOBAL_CPPFLAGS += $(qcom_flags) |
Ethan Chen | 5c5f559 | 2014-12-15 18:44:31 -0800 | [diff] [blame] | 29 | |
Steve Kondik | 1646dc5 | 2014-12-24 21:58:01 -0800 | [diff] [blame^] | 30 | # Multiarch needs these too.. |
| 31 | 2ND_TARGET_GLOBAL_CFLAGS += $(qcom_flags) |
| 32 | 2ND_TARGET_GLOBAL_CPPFLAGS += $(qcom_flags) |
| 33 | 2ND_CLANG_TARGET_GLOBAL_CFLAGS += $(qcom_flags) |
| 34 | 2ND_CLANG_TARGET_GLOBAL_CFLAGS += $(qcom_flags) |
| 35 | |
Anthony King | 1122383 | 2014-11-17 22:06:31 +0000 | [diff] [blame] | 36 | $(call project-set-path,qcom-audio,hardware/qcom/audio-caf/$(TARGET_BOARD_PLATFORM)) |
Tom Marshall | 7754785 | 2014-09-18 09:45:33 -0700 | [diff] [blame] | 37 | $(call qcom-set-path-variant,CAMERA,camera) |
Anthony King | 1122383 | 2014-11-17 22:06:31 +0000 | [diff] [blame] | 38 | $(call project-set-path,qcom-display,hardware/qcom/display-caf/$(TARGET_BOARD_PLATFORM)) |
Tom Marshall | 7754785 | 2014-09-18 09:45:33 -0700 | [diff] [blame] | 39 | $(call qcom-set-path-variant,GPS,gps) |
Anthony King | 1122383 | 2014-11-17 22:06:31 +0000 | [diff] [blame] | 40 | $(call project-set-path,qcom-media,hardware/qcom/media-caf/$(TARGET_BOARD_PLATFORM)) |
Tom Marshall | 7754785 | 2014-09-18 09:45:33 -0700 | [diff] [blame] | 41 | $(call qcom-set-path-variant,SENSORS,sensors) |
Ethan Chen | 05f1848 | 2014-11-08 23:07:16 -0800 | [diff] [blame] | 42 | else |
| 43 | $(call project-set-path,qcom-audio,hardware/qcom/audio) |
| 44 | $(call qcom-set-path-variant,CAMERA,camera) |
Anthony King | 1122383 | 2014-11-17 22:06:31 +0000 | [diff] [blame] | 45 | $(call project-set-path,qcom-display,hardware/qcom/display/$(TARGET_BOARD_PLATFORM)) |
Ethan Chen | 05f1848 | 2014-11-08 23:07:16 -0800 | [diff] [blame] | 46 | $(call qcom-set-path-variant,GPS,gps) |
Lars Greiss | 048b938 | 2014-11-19 14:47:45 +0100 | [diff] [blame] | 47 | $(call project-set-path,qcom-media,hardware/qcom/media) |
Ethan Chen | 05f1848 | 2014-11-08 23:07:16 -0800 | [diff] [blame] | 48 | $(call qcom-set-path-variant,SENSORS,sensors) |
| 49 | endif |