forked from Github_Repos/cvw
		
	Paths changed in latest GCC
This commit is contained in:
		
							parent
							
								
									195e7c1a9c
								
							
						
					
					
						commit
						bcd90bdb4e
					
				| @ -110,11 +110,11 @@ Ubuntu users may need to install and update various tools.  Beware when cutting | |||||||
| 
 | 
 | ||||||
| ### Install RISC-V GCC Cross-Compiler | ### Install RISC-V GCC Cross-Compiler | ||||||
| 
 | 
 | ||||||
| To install GCC from source can take hours to compile. This configuration enables multilib to target many flavors of RISC-V.   This book is tested with GCC 12.2 (tagged 2022.09.21), but will likely work with newer versions as well.  | To install GCC from source can take hours to compile. This configuration enables multilib to target many flavors of RISC-V.   This book is tested with GCC 12.2 (tagged 2023.01.31), but will likely work with newer versions as well.  | ||||||
| 
 | 
 | ||||||
| 	$ git clone https://github.com/riscv/riscv-gnu-toolchain  | 	$ git clone https://github.com/riscv/riscv-gnu-toolchain  | ||||||
| 	$ cd riscv-gnu-toolchain  | 	$ cd riscv-gnu-toolchain  | ||||||
| 	$ git checkout 2022.09.21  | 	$ git checkout 2023.01.31  | ||||||
| 	$ ./configure --prefix=$RISCV --enable-multilib --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;" | 	$ ./configure --prefix=$RISCV --enable-multilib --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;" | ||||||
| 	$ make --jobs | 	$ make --jobs | ||||||
| 
 | 
 | ||||||
| @ -143,7 +143,7 @@ Spike also takes a while to install and compile, but this can be done concurrent | |||||||
| 	$ git clone https://github.com/riscv-software-src/riscv-isa-sim | 	$ git clone https://github.com/riscv-software-src/riscv-isa-sim | ||||||
| 	$ mkdir riscv-isa-sim/build | 	$ mkdir riscv-isa-sim/build | ||||||
| 	$ cd riscv-isa-sim/build | 	$ cd riscv-isa-sim/build | ||||||
| 	$ ../configure --prefix=$RISCV --enable-commitlog  | 	$ ../configure --prefix=$RISCV  | ||||||
| 	$ make --jobs | 	$ make --jobs | ||||||
| 	$ make install  | 	$ make install  | ||||||
| 	$ cd ../arch_test_target/spike/device | 	$ cd ../arch_test_target/spike/device | ||||||
|  | |||||||
| @ -54,13 +54,15 @@ fi | |||||||
| cd $RISCV | cd $RISCV | ||||||
| git clone https://github.com/riscv/riscv-gnu-toolchain | git clone https://github.com/riscv/riscv-gnu-toolchain | ||||||
| cd riscv-gnu-toolchain | cd riscv-gnu-toolchain | ||||||
|  | git checkout 2023.01.31  | ||||||
| ./configure --prefix=${RISCV} --enable-multilib --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;" | ./configure --prefix=${RISCV} --enable-multilib --with-multilib-generator="rv32e-ilp32e--;rv32i-ilp32--;rv32im-ilp32--;rv32iac-ilp32--;rv32imac-ilp32--;rv32imafc-ilp32f--;rv32imafdc-ilp32d--;rv64i-lp64--;rv64ic-lp64--;rv64iac-lp64--;rv64imac-lp64--;rv64imafdc-lp64d--;rv64im-lp64--;" | ||||||
| make -j ${NUM_THREADS} | make -j ${NUM_THREADS} | ||||||
| make install | make install | ||||||
| 
 | 
 | ||||||
| # elf2hex | # elf2hex | ||||||
| cd $RISCV | cd $RISCV | ||||||
| export PATH=$RISCV/riscv-gnu-toolchain/bin:$PATH | #export PATH=$RISCV/riscv-gnu-toolchain/bin:$PATH | ||||||
|  | gexport PATH=$RISCV/bin:$PATH | ||||||
| git clone https://github.com/sifive/elf2hex.git | git clone https://github.com/sifive/elf2hex.git | ||||||
| cd elf2hex | cd elf2hex | ||||||
| autoreconf -i | autoreconf -i | ||||||
| @ -87,7 +89,7 @@ cd $RISCV | |||||||
| git clone https://github.com/riscv-software-src/riscv-isa-sim | git clone https://github.com/riscv-software-src/riscv-isa-sim | ||||||
| mkdir -p riscv-isa-sim/build | mkdir -p riscv-isa-sim/build | ||||||
| cd riscv-isa-sim/build | cd riscv-isa-sim/build | ||||||
| ../configure --prefix=$RISCV --enable-commitlog | ../configure --prefix=$RISCV  | ||||||
| make -j ${NUM_THREADS} | make -j ${NUM_THREADS} | ||||||
| make install  | make install  | ||||||
| cd ../arch_test_target/spike/device | cd ../arch_test_target/spike/device | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user