diff --git a/build.sh b/build.sh index 84c623b..f582f67 100755 --- a/build.sh +++ b/build.sh @@ -53,6 +53,9 @@ M4_URL=https://mirror.ufs.ac.za/gnu/m4/m4-$M4_VERSION.tar.xz NCURSES_VERSION=6.6 NCURSES_URL=https://mirror.ufs.ac.za/gnu/ncurses/ncurses-$NCURSES_VERSION.tar.gz +BASH_VERSION=5.3 +BASH_URL=https://mirror.ufs.ac.za/gnu/bash/bash-$BASH_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} @@ -256,10 +259,29 @@ toolchain_ncurses() { cd "$SOURCES" && rm -rf ncurses-$NCURSES_VERSION } +toolchain_bash() { + fetch $BASH_URL + + cd "$SOURCES" && tar xf bash-$BASH_VERSION.tar.gz && cd bash-$BASH_VERSION + + ./configure \ + --prefix=/usr \ + --build=$(sh support/config.guess) \ + --host=$TARGET \ + --without-bash-malloc + + make && make DESTDIR="$SYSROOT" install + + ln -sv bash "$SYSROOT"/bin/sh + + cd "$SOURCES" && rm -rf bash-$BASH_VERSION +} + #bootstrap_binutils #bootstap_gcc #bootstap_linux #bootstap_glibc #bootstap_libstdcpp #toolchain_m4 -toolchain_ncurses \ No newline at end of file +#toolchain_ncurses +toolchain_bash \ No newline at end of file