scx/meson-scripts/fetch_bpftool
Jordan Rome ffc7b7dc4a Fetch and build bpftool by default
This pairs with the new default behavior to fetch and build libbpf
and is mostly being used so we can use the latest bpftool and libbpf.
2024-03-11 10:00:01 -07:00

9 lines
188 B
Bash

#!/bin/bash
cd $1
rm -rf bpftool
git clone --depth=1 https://github.com/libbpf/bpftool.git
cd bpftool
git fetch --depth=1 origin $2
git checkout $2
git submodule update --init --recursive