blob: 12d580acbd944b63d5a494f60b5297b1874403f1 [file] [log] [blame]
Robin Peng5e915ea2020-04-20 16:21:11 +08001soong_namespace {
2}
3
Bob Badourfbf6ddb2021-03-28 19:50:57 -07004package {
5 default_applicable_licenses: ["hardware_qcom_sm7250_gps_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23 name: "hardware_qcom_sm7250_gps_license",
24 visibility: [":__subpackages__"],
25 license_kinds: [
26 "SPDX-license-identifier-Apache-2.0",
27 "SPDX-license-identifier-BSD",
28 "legacy_not_a_contribution",
29 ],
30 // large-scale-change unable to identify any license_text files
31}
32
Saurabh Srivastava3f915282019-12-18 14:26:29 +053033GNSS_CFLAGS = [
34 "-Werror",
35 "-Wno-error=unused-parameter",
36 "-Wno-error=macro-redefined",
37 "-Wno-error=reorder",
38 "-Wno-error=missing-braces",
39 "-Wno-error=self-assign",
40 "-Wno-error=enum-conversion",
41 "-Wno-error=logical-op-parentheses",
42 "-Wno-error=null-arithmetic",
43 "-Wno-error=null-conversion",
44 "-Wno-error=parentheses-equality",
45 "-Wno-error=undefined-bool-conversion",
46 "-Wno-error=tautological-compare",
47 "-Wno-error=switch",
48 "-Wno-error=date-time",
49]
50
51/* Activate the following for regression testing */
52GNSS_SANITIZE = {
haohuang377cdcf2020-02-19 18:11:07 +080053/* address: true,*/
Saurabh Srivastava3f915282019-12-18 14:26:29 +053054 cfi: true,
55 misc_undefined: [
Saurabh Srivastava3f915282019-12-18 14:26:29 +053056 "bounds",
57 "null",
58 "unreachable",
59 "integer",
60 ],
Saurabh Srivastava3f915282019-12-18 14:26:29 +053061}
62
63/* Activate the following for debug purposes only,
64 comment out for production */
65GNSS_SANITIZE_DIAG = {
66/*
67 diag: {
68 cfi: true,
69 misc_undefined: [
Saurabh Srivastava3f915282019-12-18 14:26:29 +053070 "bounds",
71 "null",
72 "unreachable",
73 "integer",
74 ],
75 },
76*/
77}