1# TODO: Find a better way to separate build configs for ADP vs non-ADP devices 2ifneq ($(BOARD_IS_AUTOMOTIVE),true) 3 ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) 4 LOCAL_PATH := $(call my-dir) 5 ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true) 6 7 ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),) 8 #For apq8064 use msm8960 9 include $(call all-named-subdir-makefiles,msm8960) 10 else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),) 11 #For msm8992 use msm8994 12 include $(call all-named-subdir-makefiles,msm8994) 13 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)) 16 else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),) 17 #For all other targets besides msm8916 18 GPS_DIRS=core utils loc_api platform_lib_abstractions etc 19 include $(call all-named-subdir-makefiles,$(GPS_DIRS)) 20 endif #TARGET_BOARD_PLATFORM 21 22 else 23 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)),) 26 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 34 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 38 endif #BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET 39 40 endif #BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 41endif 42