Commit 1d9ed74e authored by Keith Packard's avatar Keith Packard

meson: Add sample arm and native meson configurations

The arm one targets arm-none-eabi, while the native one builds
the library for the local machine.
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 9d1cc8ea
[binaries]
c = 'arm-none-eabi-gcc'
ar = 'arm-none-eabi-ar'
as = 'arm-none-eabi-as'
[host_machine]
system = ''
cpu_family = ''
cpu = ''
endian = ''
#!/bin/sh
ARCH=arm-none-eabi
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
#!/bin/sh
DIR=`dirname $0`
meson $DIR \
-Dnewlib-tinystdio=true \
-Dnewlib-supplied-syscalls=false \
-Dnewlib-reentrant-small=true\
-Dnewlib-wide-orient=false\
-Dnewlib-nano-malloc=true\
-Dlite-exit=true\
-Dnewlib-global-atexit=true\
-Dincludedir=lib/newlib-nano/include \
-Dlibdir=lib/newlib-nano/lib \
-Dtests=true \
--buildtype debug
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