Automatically rebuild a rust file when running qemu.
This commit is contained in:
parent
b0048b0a4f
commit
5b1debde54
|
@ -4,7 +4,7 @@ __pycache__/
|
|||
compile_commands.json
|
||||
|
||||
sysroot/bin
|
||||
sysroot/usr/bin
|
||||
sysroot/usr
|
||||
|
||||
rust/target
|
||||
yunq/venv
|
||||
|
|
|
@ -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=
|
||||
|
|
Loading…
Reference in New Issue