mirror of
https://github.com/JakeHillion/scx.git
synced 2026-12-04 02:30:50 +00:00
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>
13 lines
170 B
Bash
Executable File
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
|