added bash toolchain step & formatted

This commit is contained in:
ag-tsotetsi
2026-02-08 11:32:47 +02:00
parent 0fdf14d5f0
commit 2be0dc5c18
3 changed files with 82 additions and 26 deletions

49
build/bash/build.bash Normal file
View File

@@ -0,0 +1,49 @@
. "$PROJECTDIR/build/bash/package.env"
fetch $BASH_URL
cd "$SOURCES" && tar xf bash-$BASH_VERSION.tar.gz && cd bash-$BASH_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--build=$(sh support/config.guess) \
--host=$TARGET \
--without-bash-malloc > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
ln -sv bash "$SYSROOT/bin/sh"
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
cd "$SOURCES" && rm -rf "$SOURCES/bash-$BASH_VERSION"