logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/make-initrd.git
commit: d0282804baecc8898a0313cf9e228e231d095b83
parent 4a81b1523a218127576c41f4db3f28551140c65e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  3 May 2024 00:49:38 +0200

Add binutils-2.42

Diffstat:

Mdistfiles.SHA512SUM1+
Mfetch.sh1+
Mmake-root.sh11+++++++++++
3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -1,3 +1,4 @@ +1e4ee462513eadd3c540e4782f9661df62ecbcd4d6297d61dcc0845ae7d30243c57571787706af3bb4d561e4350609d7057307290e81d76290a301f159a6abc5 distfiles/binutils-2.42.tar.gz 50622aee8024b3e0385974a8f446a4b5df0ba494b6133ab91ebbe63c408154b112f62c9df8521f4f1beaf28cdd6e7da178c3334337f6b14c8bced532029d8ba5 distfiles/bmake-20230909.tar.gz 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3 distfiles/bzip2-1.0.8.tar.gz 1f1f10a7b49402053172cc028bbd939a46fcf933994cb867fa40e8c5bbd7b1291575b3bac254cd79dc4fce3e3a2c88fe0f890449888fda16169c8e6a2540f055 distfiles/heirloom-devtools-070527.tar.bz2 diff --git a/fetch.sh b/fetch.sh @@ -9,6 +9,7 @@ URLS=" https://zlib.net/zlib-1.3.1.tar.gz https://www.zlib.net/pigz/pigz-2.8.tar.gz https://downloads.sourceforge.net/project/heirloom/heirloom-devtools/070527/heirloom-devtools-070527.tar.bz2 + https://sourceware.org/pub/binutils/releases/binutils-2.42.tar.gz " WORKDIR="$(dirname "$0")" diff --git a/make-root.sh b/make-root.sh @@ -54,6 +54,17 @@ for i in $tarballs; do done rm yacc-1.9.1/yacc || die +# This way you go from 300+ MiB extracted to ~110.4 MiB. +# Not exactly something I'd call reviewable but still much better, +# could likely shave off ~20 MiB with generated files like removing +# the 2.2MiB Makefile.in at the root but I'd need to build autotools +# and then hope it regenerates somewhat similar files… +tar xf "${WORKDIR}/distfiles/binutils-2.42.tar.gz" \ + --exclude binutils-2.42/gas \ + --exclude binutils-2.42/zlib \ + --exclude testsuite \ + --exclude po || die "Failed extracting binutils-2.42.tar.gz" + deblob mkdir -p bin dev proc sys etc tmp || die "Failed creating base directories"