added bash toolchain build
This commit is contained in:
24
build.sh
24
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_VERSION=6.6
|
||||||
NCURSES_URL=https://mirror.ufs.ac.za/gnu/ncurses/ncurses-$NCURSES_VERSION.tar.gz
|
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
|
if [ ! -d "$SYSROOT" ]; then
|
||||||
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
||||||
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
||||||
@@ -256,10 +259,29 @@ toolchain_ncurses() {
|
|||||||
cd "$SOURCES" && rm -rf ncurses-$NCURSES_VERSION
|
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
|
#bootstrap_binutils
|
||||||
#bootstap_gcc
|
#bootstap_gcc
|
||||||
#bootstap_linux
|
#bootstap_linux
|
||||||
#bootstap_glibc
|
#bootstap_glibc
|
||||||
#bootstap_libstdcpp
|
#bootstap_libstdcpp
|
||||||
#toolchain_m4
|
#toolchain_m4
|
||||||
toolchain_ncurses
|
#toolchain_ncurses
|
||||||
|
toolchain_bash
|
||||||
Reference in New Issue
Block a user