-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgps_vendor_board.mk
27 lines (24 loc) · 1.07 KB
/
gps_vendor_board.mk
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
# Any TARGET_BOARD_PLATFORM being built that does
# not want vendor location modules built should be
# added to this exclude list to prevent building
LOC_BOARD_PLATFORM_EXCLUDE_LIST := anorak
LOC_BOARD_PLATFORM_EXCLUDE_LIST += niobe
#lowi only exception list
LOC_BOARD_PLATFORM_LOWI_ONLY_LIST := niobe
# Define BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE if:
# EXCLUDE_LOCATION_FEATURES is not true AND
# TARGET_BOARD_PLATFORM is not in LOC_BOARD_PLATFORM_EXCLUDE_LIST AND
# (TARRGET_USES_QMMA is not true OR
# TARGET_USES_QMAA_OVERRIDE_GPS is not false
ifneq ($(EXCLUDE_LOCATION_FEATURES),true)
ifeq (,$(filter $(LOC_BOARD_PLATFORM_EXCLUDE_LIST),$(TARGET_BOARD_PLATFORM)))
ifneq ($(TARGET_USES_QMAA),true)
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
else ifneq ($(TARGET_USES_QMAA_OVERRIDE_GPS),false)
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
endif
endif #LOC_BOARD_PLATFORM_EXCLUDE_LIST check
endif #EXCLUDE_LOCATION_FEATURES check
ifneq ($(findstring $(TARGET_BOARD_PLATFORM),$(LOC_BOARD_PLATFORM_LOWI_ONLY_LIST)),)
GPS_LOWI_ONLY_BUILD := true
endif