Commit c1f5502d authored by Keith Packard's avatar Keith Packard

Add samples for compiling for RISC-V target

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 78e4728f
[binaries]
c = 'riscv32-unknown-elf-gcc'
ar = 'riscv32-unknown-elf-ar'
as = 'riscv32-unknown-elf-as'
[host_machine]
system = ''
cpu_family = ''
cpu = ''
endian = ''
#!/bin/sh
ARCH=riscv32-unknown-elf
DIR=`dirname $0`
meson $DIR \
-Dtarget-optspace=true \
-Dnewlib-tinystdio=true \
-Dnewlib-supplied-syscalls=false \
-Dnewlib-reentrant-small=true\
-Dnewlib-wide-orient=false\
-Dnewlib-nano-malloc=true\
-Dnewlib-reent-small=true\
-Dlite-exit=true\
-Dnewlib-global-atexit=true\
-Dnewlib-global-errno=true\
-Dincludedir=lib/newlib-nano/$ARCH/include \
-Dlibdir=lib/newlib-nano/$ARCH/lib \
--cross-file $DIR/cross-$ARCH.txt \
--buildtype plain
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