From 866909fbf75a86dca17dddd15f4b54fa140054c6 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 13 Jan 2021 21:38:34 +1100 Subject: [PATCH] Create empty files for tcc inside chroot --- rootfs.sh | 4 +--- sysa/tcc.kaem | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/rootfs.sh b/rootfs.sh index 27f915f..8010394 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -58,14 +58,12 @@ cp mes.kaem tmp/after/ cp mes-files/mescc.scm tmp/after/bin/ cp mes-files/config.h tmp/after/mes/include/mes/ cp mes-files/config.h tmp/after/tcc-mes/include/mes/ -mkdir tmp/after/mes/{bin,m2} +mkdir -p tmp/after/mes/{bin,m2} # tcc cp tcc.kaem tmp/after/ cp -r tcc-0.9.26 tmp/after/ cp -r tcc-0.9.27 tmp/after/ -touch tmp/after/tcc-0.9.27/config.h -touch tmp/after/tcc-0.9.26/config.h pushd tmp/after/tcc-0.9.26 ln -s ../mes/module . ln -s ../mes/mes . diff --git a/sysa/tcc.kaem b/sysa/tcc.kaem index b65979f..5ec4d56 100755 --- a/sysa/tcc.kaem +++ b/sysa/tcc.kaem @@ -17,6 +17,10 @@ MES=${bindir}/mes # Initial tcc cd tcc-0.9.26 + +# Create config.h +catm config.h + ${MES} --no-auto-compile -e main ${bindir}/mescc.scm -- \ -S \ -o tcc.s \ @@ -379,6 +383,9 @@ tcc -ar cr ${libdir}/libgetopt.a getopt.o # Now compile tcc 0.9.27 cd ../tcc-0.9.27 +# Create config.h +catm config.h + # Compile the binary tcc \ -v \