aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2016-09-08 12:11:33 -0700
committerPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2016-09-08 12:11:33 -0700
commit10f2090b2a00943e4f81b751e1bdd90e68296bb9 (patch)
treec1fc2122061c7916edb75c7b06655fc2cbe9886c
parentd1bda8b9e8244a8dd2ddb97d81c9a707510e46e0 (diff)
downloadriscv-tools-tests-xlen.zip
riscv-tools-tests-xlen.tar.gz
riscv-tools-tests-xlen.tar.bz2
Pass TARGET_ARCH when building fesvrtests-xlen
Without this Spike will look in the wrong directory for the proxy kernel.
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 3b43362..db4a4f3 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ done
echo "Starting RISC-V Toolchain build process"
-build_project riscv-fesvr --prefix=$RISCV
+CXXFLAGS="$CXXFLAGS -DTARGET_ARCH=\\\"riscv${with_xlen}-unknown-elf\\\"" build_project riscv-fesvr --prefix=$RISCV
build_project riscv-isa-sim --prefix=$RISCV --with-fesvr=$RISCV
build_project riscv-gnu-toolchain --prefix=$RISCV --with-xlen="$with_xlen"
CC= CXX= build_project riscv-pk --prefix=$RISCV/riscv"$with_xlen"-unknown-elf --host=riscv"$with_xlen"-unknown-elf