Automatically rebuild a rust file when running qemu.

This commit is contained in:
Drew Galbraith 2024-06-08 15:58:16 -07:00
parent b0048b0a4f
commit 5b1debde54
2 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View File

@ -4,7 +4,7 @@ __pycache__/
compile_commands.json
sysroot/bin
sysroot/usr/bin
sysroot/usr
rust/target
yunq/venv

View File

@ -12,6 +12,13 @@ pushd $BUILD_DIR
ninja
ninja install
export CARGO_INSTALL_ROOT="${DIR}/../sysroot/usr/"
# Need to pushd so rustup gets the toolchain from rust/rust_toolchain.toml
pushd "${DIR}/../rust"
cargo install --force --path "${DIR}/../rust/usr/testbed/"
popd
sudo sh ${DIR}/build_image.sh disk.img
QEMU_ARGS=