logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 866909fbf75a86dca17dddd15f4b54fa140054c6
parent f3ad93a1aecd05489cfbe35038019c4e21291a0a
Author: fosslinux <fosslinux@aussies.space>
Date:   Wed, 13 Jan 2021 21:38:34 +1100

Create empty files for tcc inside chroot

Diffstat:

Mrootfs.sh4+---
Msysa/tcc.kaem7+++++++
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 \