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_VERSION=5.46
|
||||||
FILE_URL=https://astron.com/pub/file/file-$FILE_VERSION.tar.gz
|
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
|
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}
|
||||||
@@ -351,6 +354,22 @@ toolchain_file() {
|
|||||||
cd "$SOURCES" && rm -rf file-$FILE_VERSION
|
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
|
#bootstrap_binutils
|
||||||
#bootstap_gcc
|
#bootstap_gcc
|
||||||
#bootstap_linux
|
#bootstap_linux
|
||||||
@@ -361,4 +380,5 @@ toolchain_file() {
|
|||||||
#toolchain_bash
|
#toolchain_bash
|
||||||
#toolchain_coreutils
|
#toolchain_coreutils
|
||||||
#toolchain_diffutils
|
#toolchain_diffutils
|
||||||
toolchain_file
|
#toolchain_file
|
||||||
|
toolchain_findutils
|
||||||
Reference in New Issue
Block a user