Files
scx/meson-scripts/compile_scx_lib
Andrea Righi 21cf3ccd1d scx_lib: use the proper bpftool
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 <arighi@nvidia.com>
2024-12-08 12:28:23 +01:00

13 lines
170 B
Bash
Executable File

#!/bin/bash
set -e
bpftool="$1"
output="$2"
lib="$3"
dir="$PWD/lib"
libs=`find $dir -type f -name *.bpf.o | grep -v $lib.bpf.o`
${bpftool} gen object "$output" $libs