aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2016-06-29 17:37:13 -0700
committerGitHub <noreply@github.com>2016-06-29 17:37:13 -0700
commit938b68df51ac5e794bd06a1db55b55be2620b3de (patch)
tree4d690cb66bd649ab435fff9abb42f56d16f48ea6
parentca6df6287258145915065eba76618e832a4fb708 (diff)
parent2603bbc11617b2f18a31522777604da7cad9b5e1 (diff)
downloadriscv-tools-938b68df51ac5e794bd06a1db55b55be2620b3de.zip
riscv-tools-938b68df51ac5e794bd06a1db55b55be2620b3de.tar.gz
riscv-tools-938b68df51ac5e794bd06a1db55b55be2620b3de.tar.bz2
Merge pull request #34 from riscv/makeflags
Stop using "JOBS" and use "MAKEFLAGS" instead
-rw-r--r--.travis.yml1
-rw-r--r--README.md7
-rw-r--r--build.common6
3 files changed, 4 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index c55137f..aadc439 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,6 +26,7 @@ addons:
env:
global:
- RISCV="/home/travis/riscv_install"
+ - MAKEFLAGS="-j3"
before_install:
# make install destination
diff --git a/README.md b/README.md
index 462a3e1..cadf942 100644
--- a/README.md
+++ b/README.md
@@ -206,12 +206,7 @@ environment variable now:
$ export PATH=$PATH:$RISCV/bin
-One more thing: If your machine doesn't have the capacity to
-handle 16 make jobs (or conversely, it can handle more), edit
-`build.common` to change the number specified by
-`JOBS`.
-
- O$ sed -i 's/JOBS=16/JOBS=[number]/' build.common
+The number of parallel compiler runs is set by `$MAKEFLAGS`.
With everything else set up, run the build script. Recall that if you're using a new-version of gcc that isn't the default on your system, you'll need to precede the `./build.sh` with `CC=gcc-4.8 CXX=g++-4.8`:
diff --git a/build.common b/build.common
index 7a7e797..3b6a1c4 100644
--- a/build.common
+++ b/build.common
@@ -1,8 +1,6 @@
# 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."
@@ -31,8 +29,8 @@ function build_project {
echo "Configuring project $PROJECT"
../configure $* > build.log
echo "Building project $PROJECT"
- $MAKE -j$JOBS >> build.log
+ $MAKE >> build.log
echo "Installing project $PROJECT"
- $MAKE -j$JOBS install >> build.log
+ $MAKE install >> build.log
cd - > /dev/null
}