added diffutils toolchain build

This commit is contained in:
ag-tsotetsi
2026-02-20 12:29:05 +02:00
parent 74f8b302d0
commit 084bd4c30c

View File

@@ -59,6 +59,9 @@ BASH_URL=https://mirror.ufs.ac.za/gnu/bash/bash-$BASH_VERSION.tar.gz
COREUTILS_VERSION=9.9 COREUTILS_VERSION=9.9
COREUTILS_URL=https://mirror.ufs.ac.za/gnu/coreutils/coreutils-$COREUTILS_VERSION.tar.xz 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 if [ ! -d "$SYSROOT" ]; then
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run} mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include} mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
@@ -301,6 +304,25 @@ toolchain_coreutils() {
cd "$SOURCES" && rm -rf coreutils-$COREUTILS_VERSION 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 #bootstrap_binutils
#bootstap_gcc #bootstap_gcc
#bootstap_linux #bootstap_linux
@@ -309,4 +331,5 @@ toolchain_coreutils() {
#toolchain_m4 #toolchain_m4
#toolchain_ncurses #toolchain_ncurses
#toolchain_bash #toolchain_bash
toolchain_coreutils #toolchain_coreutils
toolchain_diffutils