added grep toolchain build
This commit is contained in:
21
build.sh
21
build.sh
@@ -71,6 +71,9 @@ FINDUTILS_URL=https://mirror.ufs.ac.za/gnu/findutils/findutils-$FINDUTILS_VERSIO
|
|||||||
GAWK_VERSION=5.3.2
|
GAWK_VERSION=5.3.2
|
||||||
GAWK_URL=https://mirror.ufs.ac.za/gnu/gawk/gawk-$GAWK_VERSION.tar.xz
|
GAWK_URL=https://mirror.ufs.ac.za/gnu/gawk/gawk-$GAWK_VERSION.tar.xz
|
||||||
|
|
||||||
|
GREP_VERSION=3.12
|
||||||
|
GREP_URL=https://mirror.ufs.ac.za/gnu/grep/grep-$GREP_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}
|
||||||
@@ -390,6 +393,21 @@ toolchain_gawk() {
|
|||||||
cd "$SOURCES" && rm -rf gawk-$GAWK_VERSION
|
cd "$SOURCES" && rm -rf gawk-$GAWK_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toolchain_grep() {
|
||||||
|
fetch $GREP_URL
|
||||||
|
|
||||||
|
cd "$SOURCES" && tar xf grep-$GREP_VERSION.tar.xz && cd grep-$GREP_VERSION
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--host=$TARGET \
|
||||||
|
--build=$(build-aux/config.guess)
|
||||||
|
|
||||||
|
make && make DESTDIR="$SYSROOT" install
|
||||||
|
|
||||||
|
cd "$SOURCES" && rm -rf grep-$GREP_VERSION
|
||||||
|
}
|
||||||
|
|
||||||
#bootstrap_binutils
|
#bootstrap_binutils
|
||||||
#bootstap_gcc
|
#bootstap_gcc
|
||||||
#bootstap_linux
|
#bootstap_linux
|
||||||
@@ -402,4 +420,5 @@ toolchain_gawk() {
|
|||||||
#toolchain_diffutils
|
#toolchain_diffutils
|
||||||
#toolchain_file
|
#toolchain_file
|
||||||
#toolchain_findutils
|
#toolchain_findutils
|
||||||
toolchain_gawk
|
#toolchain_gawk
|
||||||
|
toolchain_grep
|
||||||
Reference in New Issue
Block a user