Skip to content

Commit

Permalink
scx_lib: use the proper bpftool
Browse files Browse the repository at this point in the history
Make sure to use the right bpftool when building scx_lib, instead of
always relying on the system's bpftool.

Fixes: 3d72a8e ("add library infrastructure and turn allocator into a library")
Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi committed Dec 8, 2024
1 parent 5e1fea8 commit 21cf3cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ foreach src: libs
input: src + '.bpf.c',
command: [bpf_clang, bpf_base_cflags, '-target', 'bpf', libbpf_c_headers, bpf_includes,
'-c', '@INPUT@', '-o', '@OUTPUT@'],
depends: [libbpf]
depends: [libbpf, bpftool_target]
)

objs += [bpf_o]
Expand Down
2 changes: 1 addition & 1 deletion meson-scripts/compile_scx_lib
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dir="$PWD/lib"

libs=`find $dir -type f -name *.bpf.o | grep -v $lib.bpf.o`

"$bpftool" gen object "$output" $libs
${bpftool} gen object "$output" $libs

0 comments on commit 21cf3cc

Please sign in to comment.