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

@ -145,8 +145,12 @@ if [[ -d target/perf-libs ]]; then
cp -a target/perf-libs "$installDir"/bin/perf-libs
fi
mkdir -p "$installDir"/bin/sdk/bpf
cp -a sdk/bpf/* "$installDir"/bin/sdk/bpf
if [[ -z "$validatorOnly" ]]; then
# shellcheck disable=SC2086 # Don't want to double quote $rust_version
"$cargo" $maybeRustVersion build --manifest-path programs/bpf_loader/gen-syscall-list/Cargo.toml
mkdir -p "$installDir"/bin/sdk/bpf
cp -a sdk/bpf/* "$installDir"/bin/sdk/bpf
fi
(
set -x