blob: dca9aba2bd0eba5cf5375d89a404e329b7457b43 [file] [log] [blame]
Bob Badourdcbf8ca2021-02-03 22:55:55 -08001package {
2 default_applicable_licenses: ["system_bpf_license"],
3}
4
5// Added automatically by a large-scale-change
6// http://go/android-license-faq
7license {
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
Neill Kapron432d1502024-09-17 18:48:23 +000018cc_library_headers {
19 name: "vmlinux15_6.6",
20 arch: {
21 arm: {
22 export_include_dirs: ["include/vmlinux/android15_6.6/arm64"],
23 },
24 arm64: {
25 export_include_dirs: ["include/vmlinux/android15_6.6/arm64"],
26 },
27 x86: {
28 export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"],
29 },
30 x86_64: {
31 export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"],
32 },
33 },
34}
35
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070036cc_defaults {
Neill Kapron19a5ec22024-09-13 16:32:28 +000037 name: "bpf_cc_defaults",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070038 cflags: [
39 "-Wall",
40 "-Werror",
Neill Kapron19a5ec22024-09-13 16:32:28 +000041 "-Wextra",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070042 "-Wnullable-to-nonnull-conversion",
43 "-Wthread-safety",
44 "-Wunused-parameter",
45 ],
46 tidy: true,
47 tidy_checks: [
48 "android-*",
49 "cert-*",
Chenbo Feng1f20ad32018-11-26 15:18:46 -080050 "-cert-err34-c",
Chenbo Feng249e2f82018-11-20 17:37:00 -080051 "clang-analyzer-security*",
Chih-Hung Hsiehef3f44b2023-01-05 16:38:01 -080052 // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning.
53 "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling",
Bernie Innocentib2515ff2018-10-25 22:12:07 +090054 // Disabling due to many unavoidable warnings from POSIX API usage.
55 "-google-runtime-int",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070056 ],
57}