Use platform bpf_helpers.h and bpf_map_def.h for platform bpfloader
Platform BPF programs rely on platform bpf_helpers.h and bpf_map_def.h. To ensure consistency and correctness, the loader must use these platform headers instead of those from p/m/Connectivity. Bug: 424341374 Test: TH Change-Id: Id5f1bc8fdd29e54c28a3ec9e01f6a9292f6bb9e1
This commit is contained in:
parent
e0fd4cdc6c
commit
1f5cd4b9a1
2 changed files with 7 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ cc_library_headers {
|
|||
export_include_dirs: ["include/defs"],
|
||||
}
|
||||
|
||||
cc_library_headers {
|
||||
name: "bpf_prog_platform_headers",
|
||||
export_include_dirs: ["include/bpf"],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "bpf_cc_defaults",
|
||||
cflags: [
|
||||
|
|
|
|||
|
|
@ -44,9 +44,11 @@ cc_library {
|
|||
],
|
||||
header_libs: [
|
||||
"bpf_headers",
|
||||
"bpf_prog_platform_headers",
|
||||
],
|
||||
export_header_lib_headers: [
|
||||
"bpf_headers",
|
||||
"bpf_prog_platform_headers",
|
||||
],
|
||||
export_include_dirs: ["include"],
|
||||
defaults: ["bpf_cc_defaults"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue