diff options
author | Richard Xia <rxia@sifive.com> | 2017-01-16 20:23:45 -0800 |
---|---|---|
committer | Richard Xia <rxia@sifive.com> | 2017-01-17 16:41:48 -0800 |
commit | 46ea20f78416b04c4bdeaa8169f72f77a027db74 (patch) | |
tree | 5a70b59fe57404a1d8894b3fa23156a32284a32c /README.md | |
parent | 80fa4bc807a33cbdd31bd1c046174ca8dd256409 (diff) | |
parent | cd78e37f72cfc2a452a0c11744586084fbae1dcd (diff) | |
download | riscv-tools-mmio-hack.zip riscv-tools-mmio-hack.tar.gz riscv-tools-mmio-hack.tar.bz2 |
Merge remote-tracking branch 'origin/master' into mmio-hackmmio-hack
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -22,7 +22,7 @@ This repo provides guides and references: Ubuntu packages needed: - $ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc + $ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev _Note:_ This requires a compiler with C++11 support (e.g. GCC >= 4.8). @@ -30,7 +30,7 @@ To use a compiler different than the default, use: $ CC=gcc-5 CXX=g++-5 ./build.sh -_Note for OS X:_ We recommend using [Homebrew](http://brew.sh) to install the dependencies (`gawk gnu-sed gmp mpfr libmpc isl`) or even to install the tools [directly](https://github.com/riscv/homebrew-riscv). This repo will build with Apple's command-line developer tools (clang) in addition to gcc. +_Note for OS X:_ We recommend using [Homebrew](http://brew.sh) to install the dependencies (`gawk gnu-sed gmp mpfr libmpc isl wget`) or even to install the tools [directly](https://github.com/riscv/homebrew-riscv). This repo will build with Apple's command-line developer tools (clang) in addition to gcc. # <a name="newlibman"></a>The RISC-V GCC/Newlib Toolchain Installation Manual @@ -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`: @@ -414,13 +409,6 @@ 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 - Since we only need to build a few tools, we will use a modified build script, listed in its entirety below. Remember that we'll build `riscv64-unknown-linux-gnu-gcc` shortly afterwards. If you want to build the full |