Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
soft-cpu-toolchains
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
soft-cpu-toolchains
Commits
3b2e3de3
Commit
3b2e3de3
authored
Mar 13, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-riscv: use binutils master.
parent
7d346222
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
build-riscv.txt
build-riscv.txt
+7
-5
No files found.
build-riscv.txt
View file @
3b2e3de3
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment