Add support for --update-checksums in early bootstrap

This allows creating *.checksums files instead of checking against
them when UPDATE_CHECKSUMS is set to True in bootstrap.cfg.

The checksums are also copied to /usr/src so they can be accessed
easily after the bootstrap completes.
This commit is contained in:
Dor Askayo 2022-05-20 17:55:35 +03:00
parent 18fa642100
commit 653f31b59f
14 changed files with 187 additions and 20 deletions

View file

@ -18,9 +18,10 @@ prefix=/usr
bindir=${prefix}/bin
libdir=${prefix}/lib
incdir=${prefix}/include
srcdir=${prefix}/src
TMPDIR=/tmp # tmpdir is needed for patch to work
mkdir -p ${prefix} ${bindir} ${libdir} ${incdir} ${TMPDIR}
mkdir -p ${prefix} ${bindir} ${libdir} ${incdir} ${srcdir} ${TMPDIR}
# Remove remaining dependencies on /bin (stage0-posix directory)
cp /${ARCH_DIR}/bin/blood-elf ${bindir}/blood-elf