blob: b2f457df916f85688dce328af91b06543fad6ff6 [file] [log] [blame]
# Initial script which is run inside of all qemu images. The first argument to
# this script (as arranged by the qemu image itself) is the path to where the
# libc crate is mounted.
# For qemu images we currently need to install Rust manually as this wasn't done
# by the initial script
# FIXME: feels like should be responsible for downloading the
# compiler.
set -ex
cp -r $ROOT/libc /tmp/libc
cd /tmp/libc
export CARGO_TARGET_DIR=/tmp
case $TARGET in
pkg_add cargo gcc%4.9 rust
export CC=egcc
echo "Unknown target: $TARGET"
exit 1
exec sh ci/ $TARGET