Bump bpf-tools to v1.2 and get rid of xargo

This commit is contained in:
Dmitri Makarov
2021-03-16 16:32:42 +01:00
committed by Dmitri Makarov
parent 3d8c4f8389
commit 14e45155e4
43 changed files with 187 additions and 193 deletions

View File

@ -1,29 +0,0 @@
#!/usr/bin/env bash
bpf_sdk=$(cd "$(dirname "$0")/.." && pwd)
# shellcheck source=sdk/bpf/env.sh
source "$bpf_sdk"/env.sh
set -e
(
while true; do
if [[ -r Xargo.toml ]]; then
break;
fi
if [[ $PWD = / ]]; then
cat <<EOF
Error: Failed to find Xargo.toml
Please create a Xargo.toml file in the same directory as your Cargo.toml with
the following contents:
[target.bpfel-unknown-unknown.dependencies.std]
features = []
EOF
exit 1
fi
cd ..
done
)
exec "$XARGO" build --target "$XARGO_TARGET" --release "$@"