ARM: libtcc1: Add div.c, __memcpy, __memmove, __memset.

* build-aux/configure-lib.sh (libtcc1_SOURCES)[arm]: Add div.c,
__memcpy, __memmove, __memset.
* build-aux/build-source-lib.sh: Generate libtcc1.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-11-22 20:44:05 +01:00
parent e82a53a40f
commit 5951148255
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 27 additions and 1 deletions

View file

@ -49,5 +49,22 @@ for c in $libc_gnu_SOURCES; do
done
cp libc+gnu.c $mes_cpu-mes
cp ${srcdest}lib/libtcc1.c $mes_cpu-mes
rm -f libtcc1.c
cat > libtcc1.c <<EOF
// Generated from Mes -- do not edit
// compiler: $compiler
// cpu: $mes_cpu
// bits: $mes_bits
// libc: $mes_libc
// kernel: $mes_kernel
// system: $mes_system
EOF
for c in $libtcc1_SOURCES; do
echo "// $c" >> libtcc1.c
cat ${srcdest}$c >> libtcc1.c
echo >> libtcc1.c
done
cp libtcc1.c $mes_cpu-mes
cp ${srcdest}lib/posix/getopt.c $mes_cpu-mes/libgetopt.c

View file

@ -217,6 +217,15 @@ libtcc1_SOURCES="
lib/libtcc1.c
"
if test $mes_cpu = arm; then
libtcc1_SOURCES="$libtcc1_SOURCES
lib/mes/div.c
lib/string/__memcpy.c
lib/string/__memmove.c
lib/string/__memset.c
"
fi
libc_tcc_SOURCES="
$libc_SOURCES
lib/ctype/islower.c