From 0d19582f7d3aefa697474416a205072814cb1b9b Mon Sep 17 00:00:00 2001 From: ag-tsotetsi Date: Fri, 20 Feb 2026 12:51:13 +0200 Subject: [PATCH] added sed toolchain build --- build.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ab8236c..20097bb 100755 --- a/build.sh +++ b/build.sh @@ -83,6 +83,9 @@ MAKE_URL=https://mirror.ufs.ac.za/gnu/make/make-$MAKE_VERSION.tar.gz PATCH_VERSION=2.8 PATCH_URL=https://mirror.ufs.ac.za/gnu/patch/patch-$PATCH_VERSION.tar.xz +SED_VERSION=4.9 +SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz + if [ ! -d "$SYSROOT" ]; then mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run} mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include} @@ -461,6 +464,21 @@ toolchain_patch() { cd "$SOURCES" && rm -rf patch-$PATCH_VERSION } +toolchain_sed() { + fetch $SED_URL + + cd "$SOURCES" && tar xf sed-$SED_VERSION.tar.xz && cd sed-$SED_VERSION + + ./configure \ + --prefix=/usr \ + --host=$TARGET \ + --build=$(build-aux/config.guess) + + make && make DESTDIR="$SYSROOT" install + + cd "$SOURCES" && rm -rf sed-$SED_VERSION +} + #bootstrap_binutils #bootstap_gcc #bootstap_linux @@ -477,4 +495,5 @@ toolchain_patch() { #toolchain_grep #toolchain_gzip #toolchain_make -toolchain_patch \ No newline at end of file +#toolchain_patch +toolchain_sed \ No newline at end of file