Bob Badour | dcbf8ca | 2021-02-03 22:55:55 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["system_bpf_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // http://go/android-license-faq |
| 7 | license { |
| 8 | name: "system_bpf_license", |
| 9 | visibility: [":__subpackages__"], |
| 10 | license_kinds: [ |
| 11 | "SPDX-license-identifier-Apache-2.0", |
| 12 | ], |
| 13 | license_text: [ |
| 14 | "NOTICE", |
| 15 | ], |
| 16 | } |
| 17 | |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 18 | cc_defaults { |
| 19 | name: "bpf_defaults", |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 20 | cflags: [ |
| 21 | "-Wall", |
| 22 | "-Werror", |
| 23 | "-Wnullable-to-nonnull-conversion", |
| 24 | "-Wthread-safety", |
| 25 | "-Wunused-parameter", |
| 26 | ], |
| 27 | tidy: true, |
| 28 | tidy_checks: [ |
| 29 | "android-*", |
| 30 | "cert-*", |
| 31 | "clang-analyzer-security*", |
Chenbo Feng | 1f20ad3 | 2018-11-26 15:18:46 -0800 | [diff] [blame] | 32 | "-cert-err34-c", |
Chenbo Feng | 249e2f8 | 2018-11-20 17:37:00 -0800 | [diff] [blame] | 33 | "clang-analyzer-security*", |
Bernie Innocenti | b2515ff | 2018-10-25 22:12:07 +0900 | [diff] [blame] | 34 | // Disabling due to many unavoidable warnings from POSIX API usage. |
| 35 | "-google-runtime-int", |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 36 | ], |
| 37 | } |