mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
Add a local version of the `riscv` crate with support for `-xous-` as an OS. This allows us to build our kernel using `riscv32imac-unknown-xous-elf` as a target. Signed-off-by: Sean Cross <sean@xobs.io>
14 lines
364 B
Bash
14 lines
364 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
if [ -n "${TARGET:-}" ]; then
|
|
rustup target add $TARGET
|
|
fi
|
|
|
|
if [ -n "${CHECK_BLOBS:-}" ]; then
|
|
if [ ! -d gcc/bin ]; then
|
|
mkdir -p gcc
|
|
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
|
|
fi
|
|
fi
|