blob: c4431d1341a10d5a22f4451d0d1d4573329b8438 [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
Neill Kapron644d3362024-11-21 17:25:34 +000036cc_library_headers {
37 name: "android_bpf_defs",
38 export_include_dirs: ["include/defs"],
39}
40
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070041cc_defaults {
Neill Kapron19a5ec22024-09-13 16:32:28 +000042 name: "bpf_cc_defaults",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070043 cflags: [
44 "-Wall",
45 "-Werror",
Neill Kapron19a5ec22024-09-13 16:32:28 +000046 "-Wextra",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070047 "-Wnullable-to-nonnull-conversion",
Motomu Utsumi6a162d72025-03-21 11:00:52 +090048 "-Wtautological-unsigned-zero-compare",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070049 "-Wthread-safety",
50 "-Wunused-parameter",
51 ],
52 tidy: true,
53 tidy_checks: [
54 "android-*",
55 "cert-*",
Chenbo Feng1f20ad32018-11-26 15:18:46 -080056 "-cert-err34-c",
Chenbo Feng249e2f82018-11-20 17:37:00 -080057 "clang-analyzer-security*",
Chih-Hung Hsiehef3f44b2023-01-05 16:38:01 -080058 // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning.
59 "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling",
Bernie Innocentib2515ff2018-10-25 22:12:07 +090060 // Disabling due to many unavoidable warnings from POSIX API usage.
61 "-google-runtime-int",
Chenbo Feng4c9e9ec2018-10-16 20:31:52 -070062 ],
63}