Robin Peng | 5e915ea | 2020-04-20 16:21:11 +0800 | [diff] [blame] | 1 | soong_namespace { |
| 2 | } |
| 3 | |
Bob Badour | fbf6ddb | 2021-03-28 19:50:57 -0700 | [diff] [blame] | 4 | package { |
| 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 |
| 22 | license { |
| 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 Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 33 | GNSS_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 */ |
| 52 | GNSS_SANITIZE = { |
haohuang | 377cdcf | 2020-02-19 18:11:07 +0800 | [diff] [blame] | 53 | /* address: true,*/ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 54 | cfi: true, |
| 55 | misc_undefined: [ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 56 | "bounds", |
| 57 | "null", |
| 58 | "unreachable", |
| 59 | "integer", |
| 60 | ], |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | /* Activate the following for debug purposes only, |
| 64 | comment out for production */ |
| 65 | GNSS_SANITIZE_DIAG = { |
| 66 | /* |
| 67 | diag: { |
| 68 | cfi: true, |
| 69 | misc_undefined: [ |
Saurabh Srivastava | 3f91528 | 2019-12-18 14:26:29 +0530 | [diff] [blame] | 70 | "bounds", |
| 71 | "null", |
| 72 | "unreachable", |
| 73 | "integer", |
| 74 | ], |
| 75 | }, |
| 76 | */ |
| 77 | } |