logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 86e215175c8ffed0eb9c34eb00e7537b08126db3
parent 9e169e7dfc3c6a846b5a9eb4a3dcfeb2d0b7beaf
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 May 2024 04:16:12 +0200

bootstrap-bearssl.sh: Add, use in bootstrap-tiny-curl.sh

Diffstat:

MREADME.md1+
Abootstrap-bearssl.sh15+++++++++++++++
Mbootstrap-tiny-curl.sh2+-
Mdistfiles.SHA512SUM1+
Mfetch.sh1+
Mmake-root.sh2++
6 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -128,6 +128,7 @@ Meanwhile: - iproute2: Basic networking configuration - skalibs: dependency of mdevd - mdevd: hotplug devices daemon +- bearssl: small TLS library - tiny-curl: Still pretty big but hopefully close enough to the usual one ## Launching in QEMU diff --git a/bootstrap-bearssl.sh b/bootstrap-bearssl.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -ex + +tar xof /bearssl-*.tar.gz +cd bearssl-*/ + +# Maybe consider setting the soname to libbearssl.so.${pkgver%%.*} as done in aports + +bmake CC=$CC LD=$CC LDDLL=$CC +install build/brssl /usr/bin/ +install -m 644 build/libbearssl.a build/libbearssl.so /usr/lib/ +install -m 644 inc/* /usr/include/ + +cd .. +rm -fr bearssl-*/ diff --git a/bootstrap-tiny-curl.sh b/bootstrap-tiny-curl.sh @@ -4,7 +4,7 @@ set -ex tar xof /tiny-curl-*.tar.gz cd tiny-curl-*/ -LD=$CC ./configure --prefix=/usr --without-ssl +LD=$CC ./configure --prefix=/usr --with-bearssl bmake RANLIB=true bmake install INSTALL=install diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -1,4 +1,5 @@ c44a0ce381469219548a3a27589af3fea4f22eda1ca4e9434b59fc16da81b471c29ce18e31590e0860a6a251a664b68c2b45e3a17d22cfc02799ffd9a208390c distfiles/bash-5.1.tar.gz +f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a distfiles/bearssl-0.6.tar.gz 50622aee8024b3e0385974a8f446a4b5df0ba494b6133ab91ebbe63c408154b112f62c9df8521f4f1beaf28cdd6e7da178c3334337f6b14c8bced532029d8ba5 distfiles/bmake-20230909.tar.gz 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3 distfiles/bzip2-1.0.8.tar.gz 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9 distfiles/heirloom-070715.tar.bz2 diff --git a/fetch.sh b/fetch.sh @@ -17,6 +17,7 @@ URLS=" https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-6.6.0.tar.gz https://www.skarnet.org/software/skalibs/skalibs-2.14.1.1.tar.gz https://skarnet.org/software/mdevd/mdevd-0.1.6.3.tar.gz + https://bearssl.org/bearssl-0.6.tar.gz https://curl.se/tiny/tiny-curl-8.4.0.tar.gz " WORKDIR="$(dirname "$0")" diff --git a/make-root.sh b/make-root.sh @@ -27,6 +27,7 @@ distfiles=" iproute2-6.6.0.tar.gz skalibs-2.14.1.1.tar.gz mdevd-0.1.6.3.tar.gz + bearssl-0.6.tar.gz tiny-curl-8.4.0.tar.gz " local_files=" @@ -43,6 +44,7 @@ local_files=" bootstrap-iproute2.sh bootstrap-skalibs.sh bootstrap-mdevd.sh + bootstrap-bearssl.sh bootstrap-tiny-curl.sh " WORKDIR="$(dirname "$0")"