logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 9b1697df09c278ac4a0a8eeafdf9ab5e26defaba
parent f0fbeee77f5629ed6ddbd02be24d79d409fee70a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 24 May 2024 03:41:48 +0200

Remove bmake

Diffstat:

MREADME.md4++--
Mfetch.sh2--
Minit.sh12------------
Mmake-root.sh2--
4 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md @@ -11,7 +11,7 @@ A initrd generator for Linux to bootstrap a POSIX-ish system from a reasonably s - [x] Capable of bootstrapping <https://git.sr.ht/~mcf/oasis> - [ ] Self-replicating: Able to reassemble the initrd with Alpine apks - [ ] Self-hosting: Able to recompile all the software used from source (including tcc and musl) -- [ ] All code involved is reviewable, this involves either replacing autoconf artifacts or running autoreconf after stripping said artifacts +- [x] Code compiled by `init.sh` is reviewable, mostly thanks to a lack of autotools ## Explorations - Reduce the binary seed even further, without compromising on keeping the bootstrapping simple and reasonably fast @@ -94,7 +94,7 @@ Meanwhile: - (OpenOffice) dmake: Horribly massive ### bzip2 -Builds with C Compiler + bmake. +Builds with C Compiler + POSIX make. Meanwhile: - pbzip2: Requires C++ compiler diff --git a/fetch.sh b/fetch.sh @@ -2,8 +2,6 @@ URLS=" https://hacktivis.me/releases/utils-std/utils-std-f2842f4.tar.gz https://frippery.org/make/pdpmake-1.4.2.tgz - https://www.crufty.net/ftp/pub/sjg/bmake-20240508.tar.gz - https://www.crufty.net/ftp/pub/sjg/mk-20240408.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz https://zlib.net/zlib-1.3.1.tar.gz https://www.zlib.net/pigz/pigz-2.8.tar.gz diff --git a/init.sh b/init.sh @@ -40,18 +40,6 @@ build_pdpmake() { $CC $CFLAGS -o /bin/pdpmake *.c } -build_bmake() { - cd /bmake/ - ./configure \ - --with-mksrc=/mk \ - --with-default-sys-path=/usr/share/mk/bmake || die - sh ./make-bootstrap.sh || die - install -c bmake /bin/bmake - FORCE_BSD_MK=1 SYS_MK_DIR=. \ - sh ../mk/install-mk -v -m 644 "${ED}"/usr/share/mk/bmake \ - || die "failed to install mk files" -} - build_bzip2() { cd /bzip2-*/ pdpmake -f Makefile-libbz2_so CC=$CC || die diff --git a/make-root.sh b/make-root.sh @@ -9,8 +9,6 @@ tarballs=" yacc-oyacc-6.6.tar.gz utils-std-f2842f4.tar.gz pdpmake-1.4.2.tgz - mk-20240408.tar.gz - bmake-20240508.tar.gz nawk-20240422.tar.gz bzip2-1.0.8.tar.gz zlib-1.3.1.tar.gz