android_system_bpf/Android.bp
Neill Kapron 644d336d2c BPF: Create android_bpf_defs
Create a new header lib to assist with the transition between bpf and
libbpf.

Bug: 359646531
Test: Manual/TH
Change-Id: I6b57d22ce56851f751c2e77af32b15b2b789fb25
Signed-off-by: Neill Kapron <nkapron@google.com>
2024-11-22 19:12:30 +00:00

62 lines
1.5 KiB
Text

package {
default_applicable_licenses: ["system_bpf_license"],
}
// Added automatically by a large-scale-change
// http://go/android-license-faq
license {
name: "system_bpf_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_headers {
name: "vmlinux15_6.6",
arch: {
arm: {
export_include_dirs: ["include/vmlinux/android15_6.6/arm64"],
},
arm64: {
export_include_dirs: ["include/vmlinux/android15_6.6/arm64"],
},
x86: {
export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"],
},
x86_64: {
export_include_dirs: ["include/vmlinux/android15_6.6/x86_64"],
},
},
}
cc_library_headers {
name: "android_bpf_defs",
export_include_dirs: ["include/defs"],
}
cc_defaults {
name: "bpf_cc_defaults",
cflags: [
"-Wall",
"-Werror",
"-Wextra",
"-Wnullable-to-nonnull-conversion",
"-Wthread-safety",
"-Wunused-parameter",
],
tidy: true,
tidy_checks: [
"android-*",
"cert-*",
"-cert-err34-c",
"clang-analyzer-security*",
// Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning.
"-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling",
// Disabling due to many unavoidable warnings from POSIX API usage.
"-google-runtime-int",
],
}