1GNSS_CFLAGS := \
2    -Werror \
3    -Wno-error=unused-parameter \
4    -Wno-error=macro-redefined \
5    -Wno-error=reorder \
6    -Wno-error=missing-braces \
7    -Wno-error=self-assign \
8    -Wno-error=enum-conversion \
9    -Wno-error=logical-op-parentheses \
10    -Wno-error=null-arithmetic \
11    -Wno-error=null-conversion \
12    -Wno-error=parentheses-equality \
13    -Wno-error=undefined-bool-conversion \
14    -Wno-error=tautological-compare \
15    -Wno-error=switch \
16    -Wno-error=date-time
17
18# GPS-HIDL
19GNSS_HIDL_1_0_TARGET_LIST := msm8960
20GNSS_HIDL_1_0_TARGET_LIST += msm8974
21GNSS_HIDL_1_0_TARGET_LIST += msm8226
22GNSS_HIDL_1_0_TARGET_LIST += msm8610
23GNSS_HIDL_1_0_TARGET_LIST += apq8084
24GNSS_HIDL_1_0_TARGET_LIST += msm8916
25GNSS_HIDL_1_0_TARGET_LIST += msm8994
26GNSS_HIDL_1_0_TARGET_LIST += msm8909
27GNSS_HIDL_1_0_TARGET_LIST += msm8952
28GNSS_HIDL_1_0_TARGET_LIST += msm8992
29GNSS_HIDL_1_0_TARGET_LIST += msm8996
30GNSS_HIDL_2_0_TARGET_LIST := msm8937
31GNSS_HIDL_2_0_TARGET_LIST += msm8953
32GNSS_HIDL_2_0_TARGET_LIST += msm8998
33GNSS_HIDL_2_0_TARGET_LIST += apq8098_latv
34GNSS_HIDL_2_0_TARGET_LIST += sdm710
35GNSS_HIDL_2_0_TARGET_LIST += qcs605
36GNSS_HIDL_2_0_TARGET_LIST += sdm845
37GNSS_HIDL_2_0_TARGET_LIST += sdm660
38GNSS_HIDL_2_0_TARGET_LIST += msmnile
39GNSS_HIDL_2_0_TARGET_LIST += sdmshrike
40GNSS_HIDL_2_0_TARGET_LIST += $(MSMSTEPPE)
41GNSS_HIDL_2_0_TARGET_LIST += $(TRINKET)
42GNSS_HIDL_2_0_TARGET_LIST += kona
43GNSS_HIDL_2_0_TARGET_LIST += atoll
44GNSS_HIDL_2_0_TARGET_LIST += lito
45GNSS_HIDL_2_0_TARGET_LIST += bengal
46
47ifneq (,$(filter $(GNSS_HIDL_2_0_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
48GNSS_HIDL_VERSION = 2.0
49endif
50ifneq (,$(filter $(GNSS_HIDL_1_0_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
51GNSS_HIDL_VERSION = 1.0
52endif
53ifneq (,$(filter $(GNSS_HIDL_1_1_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
54GNSS_HIDL_VERSION = 1.1
55endif
56
57GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST := msm8937
58GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += msm8953
59GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += msm8998
60GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += apq8098_latv
61GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm710
62GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += qcs605
63GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm845
64GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm660
65
66ifneq (,$(filter $(GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
67GNSS_HIDL_LEGACY_MEASURMENTS = true
68endif
69
70# Activate the following two lines for regression testing
71#GNSS_SANITIZE := address cfi alignment bounds null unreachable integer
72#GNSS_SANITIZE_DIAG := address cfi alignment bounds null unreachable integer
73