RISC-V Meaty Skeleton with QEMU virt board: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
No edit summary
Line 17:
 
We won't be reusing any code from those tutorials though, so throw it away (or save it to an archive) and we'll start over again.
 
==Building a Cross-Compiler==
 
:''Main article:'' [[GCC_Cross-Compiler|GCC Cross-Compiler]], [[Why_do_I_need_a_Cross_Compiler%3F|Why do I need a Cross Compiler?]]
 
You ''must'' use a [[GCC_Cross-Compiler|GCC Cross-Compiler]] in this tutorial as in the [[RISC-V_Bare_Bones|RISC-V Bare Bones]] tutorial, with <code>riscv64-elf</code> as the target.
 
You ''must'' configure your cross-binutils with the <tt>--with-sysroot</tt> option, otherwise linking will mysteriously fail with the ''this linker was not configured to use sysroots'' error message. If you forgot to configure your cross-binutils with that option, you'll have to rebuild it, but you can keep your cross-gcc.
Anonymous user