Make structure of sysa/ a bit cleaner

This commit is contained in:
fosslinux 2020-12-23 17:02:57 +11:00
parent 19b41d22f4
commit c97ad0212f
7 changed files with 123 additions and 19 deletions

View file

@ -10,18 +10,34 @@ mkdir -p tmp/
sudo mount -t tmpfs -o size=8G tmpfs tmp
# base: mescc-tools-seed
#debugging
cp busybox.static tmp/
# copy in all the mescc-tools-seed stuff
cp -r mescc-tools-seed/x86/* tmp
cp -r mescc-tools-seed/{M2-Planet,mes-m2,mescc-tools} tmp/
# and the kaem seed
cp ../bootstrap-seeds/POSIX/x86/kaem-optional-seed tmp/init
cp ../bootstrap-seeds/POSIX/x86/kaem-optional-seed tmp/
cp -r ../bootstrap-seeds tmp/
# replace the init kaem with our own custom one
mv tmp/kaem.run tmp/mescc-tools-seed.kaem.run
cp base.kaem.run tmp/kaem.run
# create directories needed
mkdir tmp/bin
# after mescc-tools-seed we get into our own little directory because
# the mescc-tools-seed one is hella messy
mkdir tmp/after/bin -p
# put all the kaems for after in
cp after.kaem tmp/
cp after.kaem.run tmp/after/kaem.run
# blynn-compiler
pushd tmp
git clone ../blynn-compiler-oriansj blynn-compiler
cp ../blynn-compiler-extras/go.kaem blynn-compiler/
patch -Np0 -i ../blynn-compiler-extras/kaem.patch
pushd tmp/after
git clone ../../blynn-compiler-oriansj blynn-compiler
cp ../../blynn-compiler.kaem blynn-compiler/go.kaem
mkdir blynn-compiler/{bin,generated}
popd