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