logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 08885095e4ab468d7c886c5ae6a29f6712fb9512
parent 9cfb6e6beb988a911f235acb16829a5422c4061b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 24 Aug 2024 02:20:44 +0200

make-root: remove PDF, examples, contrib, and autogenerated crc32.h from zlib

Diffstat:

Minit.sh5+++++
Mmake-root.sh6+++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/init.sh b/init.sh @@ -60,6 +60,11 @@ build_bzip2() { build_zlib_libs() { cd /zlib-*/ ./configure </dev/null + + # generate crc32.h + pdpmake crc32 CFLAGS="${CFLAGS} -DMAKECRCH" + ./crc32 + pdpmake install pdpmake clean } diff --git a/make-root.sh b/make-root.sh @@ -174,6 +174,11 @@ sed -i -e 's;all: libbz2.a;all: libbz2.so;' -e 's;bzip2: libbz2.a;bzip2: libbz2. patch -p0 <"${WORKDIR}/zlib-1.3.1_no_staticlib.patch" patch -p0 <"${WORKDIR}/zlib-1.3.1-use-LDFLAGS-in-configure.patch" patch -p0 <"${WORKDIR}/zlib-1.3.1-use-LDFLAGS-in-configure_no_gcc.patch" +rm zlib-*/doc/crc-doc.1.0.pdf || die "Failed removing zlib crc-doc.1.0.pdf" +rm zlib-*/crc32.h || die "Failed removing autogenerated zlib-*/crc32.h" +rm -r zlib-*/examples/ || die "Failed removing zlib-*/examples/" +rm -r zlib-*/contrib/ || die "Failed removing zlib-*/contrib/" +sed -i 's;^clean: minizip-clean;clean:;' zlib-*/Makefile.in || die "Failed disabling minizip cleanup" sed -i \ -e 's;INSTALL=.*;INSTALL=install;' \ @@ -230,7 +235,6 @@ do rm -r heirloom-0*/$i || die done -rm -r zlib-*/contrib/vstudio || die grep test-cmd/init_env.sh utils-std-*/selfcheck.sh && die "remove workaround" sed -i -e '/$runner/a[ "$runner" = "test-cmd/init_env.sh" ] && continue' utils-std-*/selfcheck.sh || die