From 084bd4c30c6e6f3c87b5972d870b01c4f502b447 Mon Sep 17 00:00:00 2001 From: ag-tsotetsi Date: Fri, 20 Feb 2026 12:29:05 +0200 Subject: [PATCH] added diffutils toolchain build --- build.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index dd98f73..d30b27f 100755 --- a/build.sh +++ b/build.sh @@ -59,6 +59,9 @@ BASH_URL=https://mirror.ufs.ac.za/gnu/bash/bash-$BASH_VERSION.tar.gz COREUTILS_VERSION=9.9 COREUTILS_URL=https://mirror.ufs.ac.za/gnu/coreutils/coreutils-$COREUTILS_VERSION.tar.xz +DIFFUTILS_VERSION=3.12 +DIFFUTILS_URL=https://mirror.ufs.ac.za/gnu/diffutils/diffutils-$DIFFUTILS_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} @@ -301,6 +304,25 @@ toolchain_coreutils() { cd "$SOURCES" && rm -rf coreutils-$COREUTILS_VERSION } +toolchain_diffutils() { + fetch $DIFFUTILS_URL + + cd "$SOURCES" && tar xf diffutils-$DIFFUTILS_VERSION.tar.xz && cd diffutils-$DIFFUTILS_VERSION + + ./configure \ + --prefix=/usr \ + --host=$TARGET \ + gl_cv_func_strcasecmp_works=y \ + --build=$(./build-aux/config.guess) + + make && make DESTDIR="$SYSROOT" install + + cd "$SOURCES" && rm -rf diffutils-$DIFFUTILS_VERSION +} + + + + #bootstrap_binutils #bootstap_gcc #bootstap_linux @@ -309,4 +331,5 @@ toolchain_coreutils() { #toolchain_m4 #toolchain_ncurses #toolchain_bash -toolchain_coreutils \ No newline at end of file +#toolchain_coreutils +toolchain_diffutils \ No newline at end of file