Andrew Chant | 1af2171 | 2018-08-27 12:42:15 -0700 | [diff] [blame] | 1 | #set TARGET_USES_HARDWARE_QCOM_GPS to false to disable this project. |
| 2 | |
| 3 | ifeq ($(TARGET_USES_HARDWARE_QCOM_GPS),) |
| 4 | ifneq ($(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)),) |
| 5 | TARGET_USES_HARDWARE_QCOM_GPS := false |
| 6 | else ifeq ($(BOARD_IS_AUTOMOTIVE),true) |
| 7 | TARGET_USES_HARDWARE_QCOM_GPS := false |
| 8 | else |
| 9 | TARGET_USES_HARDWARE_QCOM_GPS := true |
| 10 | endif |
| 11 | endif |
| 12 | |
| 13 | ifeq ($(TARGET_USES_HARDWARE_QCOM_GPS),true) |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 14 | ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) |
Chris Fries | 730d5a3 | 2017-06-30 01:40:10 -0500 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 16 | ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true) |
Dante Russo | bfff634 | 2015-05-01 18:29:28 -0700 | [diff] [blame] | 17 | |
Chris Fries | 730d5a3 | 2017-06-30 01:40:10 -0500 | [diff] [blame] | 18 | ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),) |
| 19 | #For apq8064 use msm8960 |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 20 | include $(call all-named-subdir-makefiles,msm8960) |
Chris Fries | 730d5a3 | 2017-06-30 01:40:10 -0500 | [diff] [blame] | 21 | else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),) |
| 22 | #For msm8992 use msm8994 |
Ed Tam | 8c2d3d5 | 2016-03-03 10:10:34 -0800 | [diff] [blame] | 23 | include $(call all-named-subdir-makefiles,msm8994) |
Andrew Chant | 1af2171 | 2018-08-27 12:42:15 -0700 | [diff] [blame] | 24 | else ifneq ($(filter msm8960 msm8084 msm8994 msm8996 msm8998,$(TARGET_BOARD_PLATFORM)),) |
Chris Fries | 730d5a3 | 2017-06-30 01:40:10 -0500 | [diff] [blame] | 25 | include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM)) |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 26 | else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),) |
Chris Fries | 730d5a3 | 2017-06-30 01:40:10 -0500 | [diff] [blame] | 27 | #For all other targets besides msm8916 |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 28 | GPS_DIRS=core utils loc_api platform_lib_abstractions etc |
| 29 | include $(call all-named-subdir-makefiles,$(GPS_DIRS)) |
| 30 | endif #TARGET_BOARD_PLATFORM |
Dante Russo | bfff634 | 2015-05-01 18:29:28 -0700 | [diff] [blame] | 31 | |
Ying Wang | cffbb9e | 2016-01-12 20:32:17 -0800 | [diff] [blame] | 32 | else |
Andrew Chant | 1af2171 | 2018-08-27 12:42:15 -0700 | [diff] [blame] | 33 | ifneq ($(filter msm8909 msm8226 ,$(TARGET_BOARD_PLATFORM)),) |
Alain Vongsouvanh | eee4b75 | 2017-12-05 09:37:41 -0800 | [diff] [blame] | 34 | ifeq ($(TARGET_SUPPORTS_QCOM_3100),true) |
| 35 | # For SD3100. |
| 36 | include $(call all-named-subdir-makefiles,msm8909w_3100) |
| 37 | else |
| 38 | #For msm8909 target |
| 39 | GPS_DIRS=msm8909/core msm8909/utils msm8909/loc_api msm8909/etc |
| 40 | include $(call all-named-subdir-makefiles,$(GPS_DIRS)) |
| 41 | endif |
Ying Wang | cffbb9e | 2016-01-12 20:32:17 -0800 | [diff] [blame] | 42 | else ifeq ($(filter msm8916 ,$(TARGET_BOARD_PLATFORM)),) |
| 43 | GPS_DIRS=core utils loc_api platform_lib_abstractions etc |
| 44 | include $(call all-named-subdir-makefiles,$(GPS_DIRS)) |
| 45 | endif |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 46 | endif #BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET |
Dante Russo | bfff634 | 2015-05-01 18:29:28 -0700 | [diff] [blame] | 47 | |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 48 | endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE |
Vivekbalachandar M | c0400b8 | 2020-02-28 17:59:34 +0530 | [diff] [blame] | 49 | #Introducing the msm8974 |
| 50 | ifeq ($(TARGET_BOARD_PLATFORM),msm8974) |
| 51 | include $(call all-named-subdir-makefiles,msm8974) |
| 52 | endif |
Steve Paik | 02685cb | 2015-07-15 16:51:13 -0700 | [diff] [blame] | 53 | endif |