diff --git a/build.sh b/build.sh index 4e6aea5..bcc5f1f 100755 --- a/build.sh +++ b/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_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 mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run} mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include} @@ -408,6 +411,21 @@ toolchain_grep() { 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 #bootstap_gcc #bootstap_linux @@ -421,4 +439,5 @@ toolchain_grep() { #toolchain_file #toolchain_findutils #toolchain_gawk -toolchain_grep \ No newline at end of file +#toolchain_grep +toolchain_make \ No newline at end of file