Add 6.1 vmlinux.h genrules
Generate vmlinux.h from the kernel prebuilt vmlinux Bug: 421990777 Test: Manual; build bpf prog with "vmlinux_h_6_1" header Change-Id: Ib1b7a24c470610ea6d1ee6c84f1c656e7139340b Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
parent
7a037f8346
commit
2e61afb442
1 changed files with 48 additions and 0 deletions
|
|
@ -107,3 +107,51 @@ cc_library_headers {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "vmlinux_h_6_1_arm64",
|
||||
cmd: "mkdir -p $(genDir)/6.1/arm64 && $(location bpftool) btf dump file $(location :vmlinux_6_1_arm64) format c > $(genDir)/6.1/arm64/vmlinux.h",
|
||||
srcs: [
|
||||
":vmlinux_6_1_arm64",
|
||||
],
|
||||
tools: ["bpftool"],
|
||||
out: [
|
||||
"6.1/arm64/vmlinux.h",
|
||||
],
|
||||
export_include_dirs: ["6.1/arm64"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "vmlinux_h_6_1_x86_64",
|
||||
cmd: "mkdir -p $(genDir)/6.1/x86_64 && $(location bpftool) btf dump file $(location :vmlinux_6_1_x86_64) format c > $(genDir)/6.1/x86_64/vmlinux.h",
|
||||
srcs: [
|
||||
":vmlinux_6_1_x86_64",
|
||||
],
|
||||
tools: ["bpftool"],
|
||||
out: [
|
||||
"6.1/x86_64/vmlinux.h",
|
||||
],
|
||||
export_include_dirs: ["6.1/x86_64"],
|
||||
}
|
||||
|
||||
cc_library_headers {
|
||||
name: "vmlinux_h_6_1",
|
||||
arch: {
|
||||
arm: {
|
||||
generated_headers: ["vmlinux_h_6_1_arm64"],
|
||||
export_generated_headers: ["vmlinux_h_6_1_arm64"],
|
||||
},
|
||||
arm64: {
|
||||
generated_headers: ["vmlinux_h_6_1_arm64"],
|
||||
export_generated_headers: ["vmlinux_h_6_1_arm64"],
|
||||
},
|
||||
x86: {
|
||||
generated_headers: ["vmlinux_h_6_1_x86_64"],
|
||||
export_generated_headers: ["vmlinux_h_6_1_x86_64"],
|
||||
},
|
||||
x86_64: {
|
||||
generated_headers: ["vmlinux_h_6_1_x86_64"],
|
||||
export_generated_headers: ["vmlinux_h_6_1_x86_64"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue