added diffutils toolchain build
This commit is contained in:
25
build.sh
25
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
|
||||
#toolchain_coreutils
|
||||
toolchain_diffutils
|
||||
Reference in New Issue
Block a user