aboutsummaryrefslogtreecommitdiff
path: root/build.common
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2013-04-29 22:00:55 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2013-04-29 22:00:55 -0700
commitace0d9ec2e6ff5b28610bddb1be7dc566b9483c4 (patch)
treebf33d7dfe4cccd17bd01ea5cfaaeab37ab31c321 /build.common
parentf2732e33254065a4e457b771e661784fb4d2a282 (diff)
downloadriscv-tools-ace0d9ec2e6ff5b28610bddb1be7dc566b9483c4.zip
riscv-tools-ace0d9ec2e6ff5b28610bddb1be7dc566b9483c4.tar.gz
riscv-tools-ace0d9ec2e6ff5b28610bddb1be7dc566b9483c4.tar.bz2
use new gcc configure script; build isa tests
Diffstat (limited to 'build.common')
-rw-r--r--build.common18
1 files changed, 10 insertions, 8 deletions
diff --git a/build.common b/build.common
index 50aaac0..a32a671 100644
--- a/build.common
+++ b/build.common
@@ -1,6 +1,8 @@
# Script to build RISC-V ISA simulator, proxy kernel, and GNU toolchain.
# Tools will be installed to $RISCV.
+JOBS=16
+
if [ "x$RISCV" = "x" ]
then
echo "Please set the RISCV environment variable to your preferred install path."
@@ -24,17 +26,17 @@ function build_project {
echo "Configuring project $1"
../configure $2 $3 $4 > build.log
echo "Building project $1"
- make -j > build.log
+ make -j$JOBS >> build.log
echo "Installing project $1"
- make install > build.log
+ make -j$JOBS install >> build.log
cd - > /dev/null
}
-function build_gcc {
+function build_tests {
echo
- cd riscv-gcc
- echo "Building project riscv-gcc"
- make clean
- make newlib INSTALL_DIR=$RISCV > build.log
- cd ..
+ cd riscv-tests/isa > /dev/null
+ echo "Building project riscv-tests"
+ make -j$JOBS clean > /dev/null
+ make -j$JOBS > /dev/null
+ cd - > /dev/null
}