2025-06-03 21:19:00 -07:00
|
|
|
// Copyright (C) 2025 The Android Open Source Project
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
|
name: "vmlinux_h_6_12_arm64",
|
|
|
|
|
cmd: "mkdir -p $(genDir)/6.12/arm64 && $(location bpftool) btf dump file $(location :vmlinux_6_12_arm64) format c > $(genDir)/6.12/arm64/vmlinux.h",
|
|
|
|
|
srcs: [
|
|
|
|
|
":vmlinux_6_12_arm64",
|
|
|
|
|
],
|
|
|
|
|
tools: ["bpftool"],
|
|
|
|
|
out: [
|
|
|
|
|
"6.12/arm64/vmlinux.h",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: ["6.12/arm64"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
|
name: "vmlinux_h_6_12_x86_64",
|
|
|
|
|
cmd: "mkdir -p $(genDir)/6.12/x86_64 && $(location bpftool) btf dump file $(location :vmlinux_6_12_x86_64) format c > $(genDir)/6.12/x86_64/vmlinux.h",
|
|
|
|
|
srcs: [
|
|
|
|
|
":vmlinux_6_12_x86_64",
|
|
|
|
|
],
|
|
|
|
|
tools: ["bpftool"],
|
|
|
|
|
out: [
|
|
|
|
|
"6.12/x86_64/vmlinux.h",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: ["6.12/x86_64"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cc_library_headers {
|
|
|
|
|
name: "vmlinux_h_6_12",
|
|
|
|
|
arch: {
|
|
|
|
|
arm: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_12_arm64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_12_arm64"],
|
|
|
|
|
},
|
|
|
|
|
arm64: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_12_arm64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_12_arm64"],
|
|
|
|
|
},
|
|
|
|
|
x86: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_12_x86_64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_12_x86_64"],
|
|
|
|
|
},
|
|
|
|
|
x86_64: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_12_x86_64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_12_x86_64"],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-06-11 15:45:30 -07:00
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
|
name: "vmlinux_h_6_6_arm64",
|
|
|
|
|
cmd: "mkdir -p $(genDir)/6.6/arm64 && $(location bpftool) btf dump file $(location :vmlinux_6_6_arm64) format c > $(genDir)/6.6/arm64/vmlinux.h",
|
|
|
|
|
srcs: [
|
|
|
|
|
":vmlinux_6_6_arm64",
|
|
|
|
|
],
|
|
|
|
|
tools: ["bpftool"],
|
|
|
|
|
out: [
|
|
|
|
|
"6.6/arm64/vmlinux.h",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: ["6.6/arm64"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
|
name: "vmlinux_h_6_6_x86_64",
|
|
|
|
|
cmd: "mkdir -p $(genDir)/6.6/x86_64 && $(location bpftool) btf dump file $(location :vmlinux_6_6_x86_64) format c > $(genDir)/6.6/x86_64/vmlinux.h",
|
|
|
|
|
srcs: [
|
|
|
|
|
":vmlinux_6_6_x86_64",
|
|
|
|
|
],
|
|
|
|
|
tools: ["bpftool"],
|
|
|
|
|
out: [
|
|
|
|
|
"6.6/x86_64/vmlinux.h",
|
|
|
|
|
],
|
|
|
|
|
export_include_dirs: ["6.6/x86_64"],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cc_library_headers {
|
|
|
|
|
name: "vmlinux_h_6_6",
|
|
|
|
|
arch: {
|
|
|
|
|
arm: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_6_arm64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_6_arm64"],
|
|
|
|
|
},
|
|
|
|
|
arm64: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_6_arm64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_6_arm64"],
|
|
|
|
|
},
|
|
|
|
|
x86: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_6_x86_64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_6_x86_64"],
|
|
|
|
|
},
|
|
|
|
|
x86_64: {
|
|
|
|
|
generated_headers: ["vmlinux_h_6_6_x86_64"],
|
|
|
|
|
export_generated_headers: ["vmlinux_h_6_6_x86_64"],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-06-11 15:50:53 -07:00
|
|
|
|
|
|
|
|
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"],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|