Skip to content

Commit

Permalink
Fix bpftool build
Browse files Browse the repository at this point in the history
The "OUTPUT" parameter isn't properly handled by the bpftool
make script, so we'll copy it over from the default directory.
  • Loading branch information
petrutlucian94 committed Nov 12, 2024
1 parent 48bd239 commit eaafef3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 1.16.3/cilium/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ parts:
# in bpftool yet.
sed -i 's/-lelf/-lelf -lzstd/g' src/Makefile
OUTPUT=$CRAFT_PART_INSTALL make -C src -j "$(nproc)"
make -C src -j "$(nproc)"
mkdir -p $CRAFT_PART_INSTALL/usr/local/sbin/
cp ./src/bpftool $CRAFT_PART_INSTALL/usr/local/sbin/
chmod 755 $CRAFT_PART_INSTALL/usr/local/sbin/bpftool
gops:
after: [build-deps]
plugin: go
Expand Down

0 comments on commit eaafef3

Please sign in to comment.