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 | |
Neill Kapron | 432d150 | 2024-09-17 18:48:23 +0000 | [diff] [blame] | 18 | cc_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 Kapron | 644d336 | 2024-11-21 17:25:34 +0000 | [diff] [blame] | 36 | cc_library_headers { |
| 37 | name: "android_bpf_defs", |
| 38 | export_include_dirs: ["include/defs"], |
| 39 | } |
| 40 | |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 41 | cc_defaults { |
Neill Kapron | 19a5ec2 | 2024-09-13 16:32:28 +0000 | [diff] [blame] | 42 | name: "bpf_cc_defaults", |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 43 | cflags: [ |
| 44 | "-Wall", |
| 45 | "-Werror", |
Neill Kapron | 19a5ec2 | 2024-09-13 16:32:28 +0000 | [diff] [blame] | 46 | "-Wextra", |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 47 | "-Wnullable-to-nonnull-conversion", |
| 48 | "-Wthread-safety", |
| 49 | "-Wunused-parameter", |
| 50 | ], |
| 51 | tidy: true, |
| 52 | tidy_checks: [ |
| 53 | "android-*", |
| 54 | "cert-*", |
Chenbo Feng | 1f20ad3 | 2018-11-26 15:18:46 -0800 | [diff] [blame] | 55 | "-cert-err34-c", |
Chenbo Feng | 249e2f8 | 2018-11-20 17:37:00 -0800 | [diff] [blame] | 56 | "clang-analyzer-security*", |
Chih-Hung Hsieh | ef3f44b | 2023-01-05 16:38:01 -0800 | [diff] [blame] | 57 | // Many calls to snprintf/sscanf/memset/memcpy in libbpf.c have the following warning. |
| 58 | "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling", |
Bernie Innocenti | b2515ff | 2018-10-25 22:12:07 +0900 | [diff] [blame] | 59 | // Disabling due to many unavoidable warnings from POSIX API usage. |
| 60 | "-google-runtime-int", |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 61 | ], |
| 62 | } |