Commit 3b2e3de3 authored by Tristan Gingold's avatar Tristan Gingold

build-riscv: use binutils master.

parent 7d346222
......@@ -2,8 +2,11 @@ Commands used to build a toolchain for risc-v (from bash history, so cannot be
used directly as a script).
# binutils
cd binutils-2.30-objs
../binutils-2.30/configure --target=riscv32-elf --prefix=/opt/riscv
# There are still some issues with 2.30, so master branch was used for the
# build.
# Repo: git://sourceware.org/git/binutils-gdb.git
# commit: commit 01f7e10cf2dcf403462b2feed06c43135651556d
./binutils-gdb/configure --target=riscv32-elf --prefix=/opt/riscv --disable-gdb --disable-readline --disable-libdecnumber --disable-sim
make -j16
make install-strip
......@@ -20,7 +23,7 @@ make install
# newlib
mkdir newlib-3.0.0-objs
cd newlib-3.0.0-objs
../newlib-3.0.0/configure --target=riscv32-elf --prefix=/opt/riscv
../newlib-3.0.0/configure --target=riscv32-elf --prefix=/opt/riscv
make -j30
make install
......@@ -28,7 +31,7 @@ make install
# gdb
# from: https://github.com/riscv/riscv-binutils-gdb.git
tar xvf riscv-gdb.tgz
tar xvf riscv-gdb.tgz
cd riscv-binutils-gdb/
rm -rf gold ld binutils/ gprof/
rm -rf sim gas elfcpp
......@@ -37,4 +40,3 @@ mkdir gdb-objs/
../riscv-binutils-gdb/configure --target=riscv32-elf --prefix=/opt/riscv --without-python
make -j30
make install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment