Add helper crate to generate syscalls.txt

This commit is contained in:
Michael Vines
2021-12-14 11:27:54 -08:00
parent dcd2854829
commit 8d22ca5076
9 changed files with 42 additions and 15 deletions

View File

@ -9,5 +9,8 @@ for a in "$@"; do
fi
done
set -x
set -ex
if [[ ! -f sdk/bpf/syscalls.txt ]]; then
"$here"/cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
fi
exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-build-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"