added debug option

This commit is contained in:
kevadesu 2025-03-22 17:43:14 +01:00
parent a68aa67665
commit 383b851130

View file

@ -526,11 +526,11 @@ function eal.install.toolchain() {
./configure --prefix=/usr \ ./configure --prefix=/usr \
--build=$(sh support/config.guess) \ --build=$(sh support/config.guess) \
--host=$LFS_TGT \ --host=$LFS_TGT \
--without-bash-malloc --without-bash-malloc || eal.exit "At bash - compilation configuration"
eal.notification.compiling eal.notification.compiling
make make || eal.exit "At ncurses - compilation"
eal.notification.installing eal.notification.installing
make DESTDIR=$LFS install make DESTDIR=$LFS install || eal.exit "At bash - installation"
ln -sv bash $LFS/bin/sh ln -sv bash $LFS/bin/sh
popd popd
EIR_PKG=coreutils EIR_PKG=coreutils
@ -705,6 +705,23 @@ function eal.install.toolchain() {
echo "Cross-Toolchain installation has completed." echo "Cross-Toolchain installation has completed."
} }
function eal.debug.buildBash() {
EIR_PKG=bash
pushd $LFS/sources/bash
eal.notification.buildconf
./configure --prefix=/usr \
--build=$(sh support/config.guess) \
--host=$LFS_TGT \
--without-bash-malloc || eal.exit "At bash - compilation configuration"
eal.notification.compiling
make || eal.exit "At ncurses - compilation"
eal.notification.installing
make DESTDIR=$LFS install || eal.exit "At bash - installation"
ln -sv bash $LFS/bin/sh
popd
}
function eal.install.verify() { function eal.install.verify() {
ver_check Binutils $LFS/bin/ld 2.43.1 ver_check Binutils $LFS/bin/ld 2.43.1
ver_check GCC $LGS/bin/gcc 14.2.0 ver_check GCC $LGS/bin/gcc 14.2.0
@ -744,4 +761,11 @@ ver_check()
bail() { echo -e "${BRed}FATAL ${Color_Off}| $1"; exit 1; } bail() { echo -e "${BRed}FATAL ${Color_Off}| $1"; exit 1; }
main case "$@" in
debug.buildBash)
eal.debug.buildBash
;;
*)
main
;;
esac