blob: ac8897f0454f23390c69ad0013a601316e618e83 [file] [log] [blame]
Steve Paikfe54f032017-04-28 15:46:11 -07001# TODO: Find a better way to separate build configs for ADP vs non-ADP devices
2ifneq ($(BOARD_IS_AUTOMOTIVE),true)
Steve Paik02685cb2015-07-15 16:51:13 -07003 ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
Chris Fries730d5a32017-06-30 01:40:10 -05004 LOCAL_PATH := $(call my-dir)
Steve Paik02685cb2015-07-15 16:51:13 -07005 ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
Dante Russobfff6342015-05-01 18:29:28 -07006
Chris Fries730d5a32017-06-30 01:40:10 -05007 ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),)
8 #For apq8064 use msm8960
Steve Paik02685cb2015-07-15 16:51:13 -07009 include $(call all-named-subdir-makefiles,msm8960)
Chris Fries730d5a32017-06-30 01:40:10 -050010 else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
11 #For msm8992 use msm8994
Ed Tam8c2d3d52016-03-03 10:10:34 -080012 include $(call all-named-subdir-makefiles,msm8994)
Chris Fries730d5a32017-06-30 01:40:10 -050013 else ifneq ($(filter msm8960 msm8084 msm8994 msm8996 msm8998 sdm845,$(TARGET_BOARD_PLATFORM)),)
14 #For these, use their platform name as the subdirectory
15 include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
Steve Paik02685cb2015-07-15 16:51:13 -070016 else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),)
Chris Fries730d5a32017-06-30 01:40:10 -050017 #For all other targets besides msm8916
Steve Paik02685cb2015-07-15 16:51:13 -070018 GPS_DIRS=core utils loc_api platform_lib_abstractions etc
19 include $(call all-named-subdir-makefiles,$(GPS_DIRS))
20 endif #TARGET_BOARD_PLATFORM
Dante Russobfff6342015-05-01 18:29:28 -070021
Ying Wangcffbb9e2016-01-12 20:32:17 -080022 else
Chris Fries730d5a32017-06-30 01:40:10 -050023 ifneq ($(filter sdm845,$(TARGET_BOARD_PLATFORM)),)
24 include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
25 else ifneq ($(filter msm8909 msm8226 ,$(TARGET_BOARD_PLATFORM)),)
Alain Vongsouvanheee4b752017-12-05 09:37:41 -080026 ifeq ($(TARGET_SUPPORTS_QCOM_3100),true)
27 # For SD3100.
28 include $(call all-named-subdir-makefiles,msm8909w_3100)
29 else
30 #For msm8909 target
31 GPS_DIRS=msm8909/core msm8909/utils msm8909/loc_api msm8909/etc
32 include $(call all-named-subdir-makefiles,$(GPS_DIRS))
33 endif
Ying Wangcffbb9e2016-01-12 20:32:17 -080034 else ifeq ($(filter msm8916 ,$(TARGET_BOARD_PLATFORM)),)
35 GPS_DIRS=core utils loc_api platform_lib_abstractions etc
36 include $(call all-named-subdir-makefiles,$(GPS_DIRS))
37 endif
Steve Paik02685cb2015-07-15 16:51:13 -070038 endif #BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET
Dante Russobfff6342015-05-01 18:29:28 -070039
Steve Paik02685cb2015-07-15 16:51:13 -070040 endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
Vivekbalachandar M2a801cd2020-02-28 17:59:34 +053041 #Introducing the msm8974
42 ifeq ($(TARGET_BOARD_PLATFORM),msm8974)
43 include $(call all-named-subdir-makefiles,msm8974)
44 endif
Steve Paik02685cb2015-07-15 16:51:13 -070045endif