commit: 372e08e4f97378b0704fc5fb1a6c06d3c30de3c4
parent 192221af22b0112a36b361a048a725809f458145
Author: fosslinux <fosslinux@aussies.space>
Date: Sat, 13 Feb 2021 17:29:49 +1100
Implement fletcher16 checksumming up to path
Uses fletcher16 from previous commits.
Next we will use sha-2 to do checksumming.
Diffstat:
23 files changed, 90 insertions(+), 2 deletions(-)
diff --git a/.reuse/dep5 b/.reuse/dep5
@@ -9,6 +9,6 @@ Source: https://github.com/fosslinux/live-bootstrap
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
-Files: SHA256SUMS.sources
+Files: SHA256SUMS.sources sysa/*/checksums sysa/*/checksums/*
Copyright: none
License: MIT
diff --git a/rootfs.sh b/rootfs.sh
@@ -83,6 +83,7 @@ mkdir -p tmp/after/include/linux/{x86,x86_64}
mkdir -p tmp/tmp
cp after.kaem tmp/
cp after.kaem.run tmp/after/kaem.run
+cp mescc-tools-seed/checksums tmp/after/mescc-tools-seed-checksums
cp helpers.sh run.sh tmp/after/
# mescc-tools-extra
diff --git a/sysa/after.kaem.run b/sysa/after.kaem.run
@@ -35,6 +35,7 @@ cp ../bin/kaem bin/kaem
cp ../catm bin/catm
chmod 755 bin/hex2 bin/M1 bin/M2-Planet bin/blood-elf \
bin/get_machine bin/mes-m2 bin/kaem bin/catm
+fletcher16 mescc-tools-seed-checksums
PATH=/after/bin
# Part 4: blynn-compiler
diff --git a/sysa/blynn-compiler/blynn-compiler.kaem b/sysa/blynn-compiler/blynn-compiler.kaem
@@ -259,3 +259,6 @@ cp bin/precisely ${bindir}/precisely
chmod 755 ${bindir}/precisely
cd ..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/blynn-compiler/checksums b/sysa/blynn-compiler/checksums
@@ -0,0 +1 @@
+62114 /after/bin/precisely
diff --git a/sysa/coreutils-5.0/coreutils-5.0.kaem b/sysa/coreutils-5.0/coreutils-5.0.kaem
@@ -29,3 +29,5 @@ patch -Np0 -i ../../patches/ls-strcmp.patch
# Build and install
/after/bin/make -f Makefile
/after/bin/make -f Makefile install
+
+cd ../..
diff --git a/sysa/gzip-1.2.4/checksums b/sysa/gzip-1.2.4/checksums
@@ -0,0 +1,3 @@
+39142 /after/bin/gzip
+39142 /after/bin/gunzip
+39142 /after/bin/zcat
diff --git a/sysa/gzip-1.2.4/gzip-1.2.4.kaem b/sysa/gzip-1.2.4/gzip-1.2.4.kaem
@@ -44,3 +44,6 @@ chmod 755 ${bindir}/gunzip
chmod 755 ${bindir}/zcat
cd ../..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/mes/checksums b/sysa/mes/checksums
@@ -0,0 +1,13 @@
+63031 /after/bin/mes
+23643 /after/bin/mescc.scm
+36724 /after/lib/crt1.s
+42390 /after/lib/crt1.o
+39638 /after/lib/x86.M1
+526 /after/lib/libmescc.s
+10591 /after/lib/libc+tcc.s
+45027 /after/lib/libc.s
+17259 /after/lib/libmescc.a
+20204 /after/lib/libc+tcc.a
+34645 /after/lib/libc.a
+8245 /after/lib/linux/elf32-header.hex2
+15474 /after/lib/linux/elf32-footer-single-main.hex2
diff --git a/sysa/mes/mes.kaem b/sysa/mes/mes.kaem
@@ -296,3 +296,6 @@ libdir=${prefix}/lib
${MES} -c "(display 'Hello,Mes!) (newline)"
cd ../..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/mescc-tools-extra/checksums b/sysa/mescc-tools-extra/checksums
@@ -0,0 +1,3 @@
+27475 /after/bin/chmod
+34512 /after/bin/cp
+37928 /after/bin/fletcher16
diff --git a/sysa/mescc-tools-extra/mescc-tools-extra.kaem b/sysa/mescc-tools-extra/mescc-tools-extra.kaem
@@ -125,3 +125,6 @@ hex2 \
--exec_enable
cd ..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/mescc-tools-seed/checksums b/sysa/mescc-tools-seed/checksums
@@ -0,0 +1,8 @@
+12760 /after/bin/blood-elf
+31684 /after/bin/catm
+52674 /after/bin/get_machine
+47046 /after/bin/hex2
+25862 /after/bin/kaem
+33226 /after/bin/M1
+61798 /after/bin/M2-Planet
+44920 /after/bin/mes-m2
diff --git a/sysa/patch-2.5.9/checksums b/sysa/patch-2.5.9/checksums
@@ -0,0 +1 @@
+10790 /after/bin/patch
diff --git a/sysa/patch-2.5.9/patch-2.5.9.kaem b/sysa/patch-2.5.9/patch-2.5.9.kaem
@@ -49,3 +49,6 @@ tcc -static -o ${bindir}/patch error.o getopt.o getopt1.o addext.o argmatch.o ba
patch --version
cd ../..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/sed-4.0.7/checksums b/sysa/sed-4.0.7/checksums
@@ -0,0 +1 @@
+15435 /after/bin/sed
diff --git a/sysa/sed-4.0.7/sed-4.0.7.kaem b/sysa/sed-4.0.7/sed-4.0.7.kaem
@@ -44,3 +44,6 @@ tcc -static -o ${bindir}/sed -L lib lib/libsed.a compile.o execute.o regex.o fmt
sed --version
cd ..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/tar-1.12/checksums b/sysa/tar-1.12/checksums
@@ -0,0 +1 @@
+26761 /after/bin/tar
diff --git a/sysa/tar-1.12/tar-1.12.kaem b/sysa/tar-1.12/tar-1.12.kaem
@@ -56,3 +56,6 @@ tcc -c -I lib -DSIZEOF_UNSIGNED_LONG=4 -DHAVE_FCNTL_H src/update.c
tcc -static -o ${bindir}/tar -L lib lib/libtar.a arith.o buffer.o compare.o create.o delete.o extract.o incremen.o list.o mangle.o misc.o names.o open3.o rtapelib.o tar_patched.o update.o -ltar
cd ..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/tcc-0.9.26/checksums b/sysa/tcc-0.9.26/checksums
@@ -0,0 +1,17 @@
+27585 /after/bin/boot0-tcc
+10300 /after/bin/boot1-tcc
+47485 /after/bin/boot2-tcc
+38508 /after/bin/boot3-tcc
+336 /after/bin/boot4-tcc
+35666 /after/bin/boot5-tcc
+14206 /after/bin/mes-tcc
+35666 /after/bin/tcc
+35666 /after/bin/tcc-0.9.26
+47832 /after/lib/libc.a
+47832 /after/lib/libc+gnu.a
+20204 /after/lib/libc+tcc.a
+54049 /after/lib/libgetopt.a
+23061 /after/lib/crt1.o
+16980 /after/lib/crti.o
+47705 /after/lib/crtn.o
+10853 /after/lib/tcc/libtcc1.a
diff --git a/sysa/tcc-0.9.26/tcc-0.9.26.kaem b/sysa/tcc-0.9.26/tcc-0.9.26.kaem
@@ -379,4 +379,7 @@ chmod 755 ${bindir}/tcc-0.9.26
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 lib/posix/getopt.c
tcc -ar cr ${libdir}/libgetopt.a getopt.o
-cd ..
+cd ../..
+
+# Checksums
+fletcher16 checksums
diff --git a/sysa/tcc-0.9.27/checksums/tcc-0.9.27 b/sysa/tcc-0.9.27/checksums/tcc-0.9.27
@@ -0,0 +1,9 @@
+35075 /after/bin/tcc
+47832 /after/lib/libc.a
+47832 /after/lib/libc+gnu.a
+20204 /after/lib/libc+tcc.a
+54049 /after/lib/libgetopt.a
+23061 /after/lib/crt1.o
+16980 /after/lib/crti.o
+47705 /after/lib/crtn.o
+54138 /after/lib/tcc/libtcc1.a
diff --git a/sysa/tcc-0.9.27/tcc-0.9.27.kaem b/sysa/tcc-0.9.27/tcc-0.9.27.kaem
@@ -40,3 +40,6 @@ tcc -version
kaem --file ../../compile-libc.kaem
cd ../..
+
+# Checksums
+fletcher16 checksums/tcc-0.9.27