added make toolchain build

This commit is contained in:
ag-tsotetsi
2026-02-20 12:43:04 +02:00
parent 86428d8f84
commit 8e29b5c397

View File

@@ -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
#toolchain_grep
toolchain_make