|
|
@ -103,7 +103,12 @@ fn build_c_ebpf(opts: &BuildEbpfOptions) -> anyhow::Result<()> {
|
|
|
|
|
|
|
|
|
|
|
|
let include_path = out_path.join("include");
|
|
|
|
let include_path = out_path.join("include");
|
|
|
|
get_libbpf_headers(&opts.libbpf_dir, &include_path)?;
|
|
|
|
get_libbpf_headers(&opts.libbpf_dir, &include_path)?;
|
|
|
|
|
|
|
|
// Export libbpf location as an env variable since it's needed for building
|
|
|
|
|
|
|
|
// the relocation tests at test/integration-test/src/tests/relocations.rs
|
|
|
|
|
|
|
|
// We decided to make an exception and build its eBPF programs at run-time
|
|
|
|
|
|
|
|
// because of the many different permutations.
|
|
|
|
std::env::set_var("LIBBPF_INCLUDE", &include_path);
|
|
|
|
std::env::set_var("LIBBPF_INCLUDE", &include_path);
|
|
|
|
|
|
|
|
|
|
|
|
let files = fs::read_dir(&src).unwrap();
|
|
|
|
let files = fs::read_dir(&src).unwrap();
|
|
|
|
for file in files {
|
|
|
|
for file in files {
|
|
|
|
let p = file.unwrap().path();
|
|
|
|
let p = file.unwrap().path();
|
|
|
|