diff --git a/build.sh b/build.sh index 887e9e4..9db5ca2 100755 --- a/build.sh +++ b/build.sh @@ -65,6 +65,9 @@ DIFFUTILS_URL=https://mirror.ufs.ac.za/gnu/diffutils/diffutils-$DIFFUTILS_VERSIO FILE_VERSION=5.46 FILE_URL=https://astron.com/pub/file/file-$FILE_VERSION.tar.gz +FINDUTILS_VERSION=4.10.0 +FINDUTILS_URL=https://mirror.ufs.ac.za/gnu/findutils/findutils-$FINDUTILS_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} @@ -351,6 +354,22 @@ toolchain_file() { cd "$SOURCES" && rm -rf file-$FILE_VERSION } +toolchain_findutils() { + fetch $FINDUTILS_URL + + cd "$SOURCES" && tar xf findutils-$FINDUTILS_VERSION.tar.xz && cd findutils-$FINDUTILS_VERSION + + ./configure \ + --prefix=/usr \ + --localstatedir=/var/lib/locate \ + --host=$TARGET \ + --build=$(build-aux/config.guess) + + make && make DESTDIR="$SYSROOT" install + + cd "$SOURCES" && rm -rf findutils-$FINDUTILS_VERSION +} + #bootstrap_binutils #bootstap_gcc #bootstap_linux @@ -361,4 +380,5 @@ toolchain_file() { #toolchain_bash #toolchain_coreutils #toolchain_diffutils -toolchain_file \ No newline at end of file +#toolchain_file +toolchain_findutils \ No newline at end of file