added make toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 12:00:21 +02:00
parent a5283ffcae
commit 3db625a884
2 changed files with 54 additions and 0 deletions

47
build/make/build.bash Normal file
View File

@@ -0,0 +1,47 @@
. "$PROJECTDIR/build/make/package.env"
fetch $MAKE_URL
cd "$SOURCES" && tar xf make-$MAKE_VERSION.tar.gz && cd make-$MAKE_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--host=$TARGET \
--build=$(build-aux/config.guess) > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/make-$MAKE_VERSION"