Skip to content
Stefan Wallentowitz edited this page Apr 1, 2016 · 2 revisions

To build a release the following steps are performed:

  • Clone the scripts branch for the build script: git clone -b scripts git@github.com:openrisc/newlib build-toolchain; cd build-toolchain

  • Clone binutils in the target version: git clone -b binutils-{version} git://sourceware.org/git/binutils-gdb.git binutils

  • Clone gcc in the target version: git clone -b or1k-{version}-release git@github.com:openrisc/or1k-gcc gcc

  • Clone and properly link gmp, mpc and mpfr into the gcc source tree:

      wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz; tar -xf gmp-6.1.0.tar.xz; ln -s ../gmp-6.1.0 gcc/gmp
      wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz; tar -xzf mpc-1.0.3.tar.gz; ln -s ../mpc-1.0.3 gcc/mpc
      wget http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.xz; tar -xf mpfr-3.1.4.tar.xz ln -s ../mpfr-3.1.4 gcc/mpfr
    
  • Clone newlib in the target version: git clone -b {version} git@github.com:openrisc/newlib

  • Clone gdb in the target version: git clone -b gdb-{version} git://sourceware.org/git/binutils-gdb.git gdb

  • Perform the build:

  • For the standard version: JOBS=8 ./build.sh

  • For the multicore version: JOBS=8 BUILD_MULTICORE=1 PREFIX=/opt/toolchains/or1k-elf-multicore ./build.sh

  • Create the archives and upload them

Clone this wiki locally