[Teton] Move console/shell to rust. WIP

This commit is contained in:
Drew Galbraith 2024-08-12 11:35:54 -07:00
parent 76f8795a46
commit 18e512cf1f
17 changed files with 409 additions and 5 deletions

View file

@ -12,11 +12,19 @@ pushd $BUILD_DIR
ninja
ninja install
export CARGO_INSTALL_ROOT="${DIR}/../sysroot/usr/"
CARGO_USR_ROOT="${DIR}/../sysroot/usr/"
CARGO_SYS_ROOT="${DIR}/../sysroot/"
# Need to pushd so rustup gets the toolchain from rust/rust_toolchain.toml
pushd "${DIR}/../rust"
cargo install --force --path "${DIR}/../rust/usr/testbed/"
for BIN in ${DIR}/../rust/usr/*/; do
cargo install --force --path "${BIN}" --root $CARGO_USR_ROOT
done
for BIN in ${DIR}/../rust/sys/*/; do
cargo install --force --path "${BIN}" --root $CARGO_SYS_ROOT
done
popd
sudo sh ${DIR}/build_image.sh disk.img