added findutils toolchain build
This commit is contained in:
22
build.sh
22
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
|
||||
#toolchain_file
|
||||
toolchain_findutils
|
||||
Reference in New Issue
Block a user