User Tools

Site Tools


developers:env_prepare

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developers:env_prepare [2018/12/28 16:45]
mick Add infos on multi-lib / newlib-based toolchain
developers:env_prepare [2019/04/10 20:30] (current)
mick [riscv-gnu-toolchain how to]
Line 113: Line 113:
  
 <WRAP Info> <WRAP Info>
 +=== newlib-based toolchain ===
 +
 Similar to the GNU-based toolchain, you may build a newlib-based toolchain by just typing ''​make''​ instead of ''​make linux''​ above. Make sure you use a different prefix path. Similar to the GNU-based toolchain, you may build a newlib-based toolchain by just typing ''​make''​ instead of ''​make linux''​ above. Make sure you use a different prefix path.
 </​WRAP>​ </​WRAP>​
  
 +<WRAP Info>
 +=== musl-based toolchain ===
 +
 +It is possible to build a toolchain based on musl libc, to do this clone https://​github.com/​riscv/​riscv-musl.git on the risc-gnu-toolchain top directory and use musl32 and musl64 targets. Note that musl doesn'​t support multi-lib.
 +
 +<​code>​
 +$ cd riscv-gnu-toolchain
 +$ git clone --recursive https://​github.com/​riscv/​riscv-musl.git
 +$ ./configure --prefix=<​install directory>​
 +$ make musl<​xlen>​
 +</​code>​
 +</​WRAP>​
 ==== Using the toolchain ==== ==== Using the toolchain ====
  
developers/env_prepare.1546008332.txt.gz ยท Last modified: 2018/12/28 16:45 by mick