forked from LineageOS/android_system_bpf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.bp
More file actions
82 lines (78 loc) · 2.05 KB
/
Android.bp
File metadata and controls
82 lines (78 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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",
"-Werror=conditional-uninitialized",
"-Werror=implicit-fallthrough",
"-Werror=sometimes-uninitialized",
"-Wextra",
"-Wnullable-to-nonnull-conversion",
"-Wshadow",
"-Wsign-compare",
"-Wtautological-unsigned-zero-compare",
"-Wthread-safety",
"-Wuninitialized",
"-Wunused-parameter",
],
tidy: true,
tidy_checks: [
"android-*",
"bugprone-*",
"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",
"google-*",
// Disabling due to many unavoidable warnings from POSIX API usage.
"-google-runtime-int",
"misc-*",
"performance-*",
],
tidy_checks_as_errors: [
"android-*",
"bugprone-*",
"cert-*",
"clang-analyzer-security*",
"google-*",
"misc-*",
"performance-*",
],
}