ALMOST DONE I THINK??

This commit is contained in:
kevadesu 2025-01-07 19:55:00 +01:00
parent 5026f118e8
commit 261cd87544
2 changed files with 167 additions and 92 deletions

View file

@ -111,12 +111,12 @@ function eal.install.cross-toolchain() {
eal.notification.buildconf eal.notification.buildconf
sleep 0.5 sleep 0.5
../configure --prefix=$LFS/tools \ ../configure --prefix=$LFS/tools \
--with-sysroot=$LFS \ --with-sysroot=$LFS \
--target=$LFS_TGT \ --target=$LFS_TGT \
--disable-nls \ --disable-nls \
--enable-gprofng=no \ --enable-gprofng=no \
--disable-werror \ --disable-werror \
--enable-new-dtags \ --enable-new-dtags \
--enable-default-hash-style=gnu --enable-default-hash-style=gnu
eal.notification.compiling eal.notification.compiling
make make
@ -143,24 +143,24 @@ function eal.install.cross-toolchain() {
cd build cd build
eal.notification.buildconf eal.notification.buildconf
../configure \ ../configure \
--target=$LFS_TGT \ --target=$LFS_TGT \
--prefix=$LFS/tools \ --prefix=$LFS/tools \
--with-glibc-version=2.40 \ --with-glibc-version=2.40 \
--with-sysroot=$LFS \ --with-sysroot=$LFS \
--with-newlib \ --with-newlib \
--without-headers \ --without-headers \
--enable-default-pie \ --enable-default-pie \
--enable-default-ssp \ --enable-default-ssp \
--disable-nls \ --disable-nls \
--disable-shared \ --disable-shared \
--disable-multilib \ --disable-multilib \
--disable-threads \ --disable-threads \
--disable-libatomic \ --disable-libatomic \
--disable-libgomp \ --disable-libgomp \
--disable-libquadmath \ --disable-libquadmath \
--disable-libssp \ --disable-libssp \
--disable-libvtv \ --disable-libvtv \
--disable-libstdcxx \ --disable-libstdcxx \
--enable-languages=c,c++ --enable-languages=c,c++
eal.notification.compiling eal.notification.compiling
make make
@ -200,12 +200,12 @@ function eal.install.cross-toolchain() {
echo "rootsbindir=/usr/sbin" > configparms echo "rootsbindir=/usr/sbin" > configparms
eal.notification.buildconf eal.notification.buildconf
../configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(../scripts/config.guess) \ --build=$(../scripts/config.guess) \
--enable-kernel=4.19 \ --enable-kernel=4.19 \
--with-headers=$LFS/usr/include \ --with-headers=$LFS/usr/include \
--disable-nscd \ --disable-nscd \
libc_cv_slibdir=/usr/lib libc_cv_slibdir=/usr/lib
eal.notification.compiling eal.notification.compiling
make make
@ -237,12 +237,12 @@ function eal.install.cross-toolchain() {
EIR_PKG=libstdcpp EIR_PKG=libstdcpp
eal.notification.buildconf eal.notification.buildconf
../libstdc++-v3/configure \ ../libstdc++-v3/configure \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(../config.guess) \ --build=$(../config.guess) \
--prefix=/usr \ --prefix=/usr \
--disable-multilib \ --disable-multilib \
--disable-nls \ --disable-nls \
--disable-libstdcxx-pch \ --disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/14.2.0 --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/14.2.0
eal.notification.compiling eal.notification.compiling
make make
@ -276,15 +276,15 @@ function eal.install.cross-toolchain() {
cd .. cd ..
eal.notification.buildconf eal.notification.buildconf
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(./config.guess) \ --build=$(./config.guess) \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--with-manpage-format=normal \ --with-manpage-format=normal \
--with-shared \ --with-shared \
--without-normal \ --without-normal \
--with-cxx-shared \ --with-cxx-shared \
--without-debug \ --without-debug \
--without-ada \ --without-ada \
--disable-stripping --disable-stripping
eal.notification.compiling eal.notification.compiling
make make
@ -300,9 +300,9 @@ function eal.install.cross-toolchain() {
pushd $LFS/soruces/bash pushd $LFS/soruces/bash
eal.notification.buildconf eal.notification.buildconf
./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 \
bash_cv_strtold_broken=no bash_cv_strtold_broken=no
eal.notification.compiling eal.notification.compiling
make make
@ -317,9 +317,9 @@ function eal.install.cross-toolchain() {
pushd $LFS/sources/coreutils pushd $LFS/sources/coreutils
eal.notification.buildconf eal.notification.buildconf
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) \ --build=$(build-aux/config.guess) \
--enable-install-program=hostname \ --enable-install-program=hostname \
--enable-no-install-program=kill,uptime --enable-no-install-program=kill,uptime
eal.notification.compiling eal.notification.compiling
make make
@ -336,7 +336,7 @@ function eal.install.cross-toolchain() {
mv diffutils-3.10 diffutils mv diffutils-3.10 diffutils
pushd $LFS/sources/diffutils pushd $LFS/sources/diffutils
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(./build-aux/config.guess) --build=$(./build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -347,8 +347,8 @@ function eal.install.cross-toolchain() {
mkdir build mkdir build
pushd build pushd build
../configure --disable-bzlib \ ../configure --disable-bzlib \
--disable-libseccomp \ --disable-libseccomp \
--disable-xzlib \ --disable-xzlib \
--disable-zlib --disable-zlib
make make
popd popd
@ -360,8 +360,8 @@ function eal.install.cross-toolchain() {
mv findutils-4.10.0.tar.xz findutils mv findutils-4.10.0.tar.xz findutils
pushd $LFS/sources/findutils pushd $LFS/sources/findutils
./configure --prefix=/usr \ ./configure --prefix=/usr \
--localstatedir=/var/lib/locate \ --localstatedir=/var/lib/locate \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) --build=$(build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -371,7 +371,7 @@ function eal.install.cross-toolchain() {
pushd $LFS/sources/gawk pushd $LFS/sources/gawk
sed -i 's/extras//' Makefile.in sed -i 's/extras//' Makefile.in
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) --build=$(build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -380,7 +380,7 @@ function eal.install.cross-toolchain() {
mv grep-3.11 grep mv grep-3.11 grep
pushd $LFS/sources/grep pushd $LFS/sources/grep
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(./build-aux/config.guess) --build=$(./build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -396,8 +396,8 @@ function eal.install.cross-toolchain() {
mv make-4.4.1 make mv make-4.4.1 make
pushd $LFS/sources/make pushd $LFS/sources/make
./configure --prefix=/usr \ ./configure --prefix=/usr \
--without-guile \ --without-guile \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) --build=$(build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -406,7 +406,7 @@ function eal.install.cross-toolchain() {
mv patch-2.7.6 patch mv patch-2.7.6 patch
pushd $LFS/sources/patch pushd $LFS/sources/patch
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) --build=$(build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -417,7 +417,7 @@ function eal.install.cross-toolchain() {
# From here on I got lazy with the script to get it over with Chapter 6 faster, I'll fix all of this when TylkoLinux is in last Beta stage # From here on I got lazy with the script to get it over with Chapter 6 faster, I'll fix all of this when TylkoLinux is in last Beta stage
pushd sed pushd sed
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(./build-aux/config.guess) --build=$(./build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -426,7 +426,7 @@ function eal.install.cross-toolchain() {
mv tar-1.35 tar mv tar-1.35 tar
pushd tar pushd tar
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) --build=$(build-aux/config.guess)
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -435,9 +435,9 @@ function eal.install.cross-toolchain() {
mv xz-5.6.2 xz mv xz-5.6.2 xz
pushd $LFS/sources/xz pushd $LFS/sources/xz
./configure --prefix=/usr \ ./configure --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(build-aux/config.guess) \ --build=$(build-aux/config.guess) \
--disable-static \ --disable-static \
--docdir=/usr/share/doc/xz-5.6.2 --docdir=/usr/share/doc/xz-5.6.2
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -449,15 +449,15 @@ function eal.install.cross-toolchain() {
mkdir -v build mkdir -v build
cd build cd build
../configure \ ../configure \
--prefix=/usr \ --prefix=/usr \
--build=$(../config.guess) \ --build=$(../config.guess) \
--host=$LFS_TGT \ --host=$LFS_TGT \
--disable-nls \ --disable-nls \
--enable-shared \ --enable-shared \
--enable-gprofng=no \ --enable-gprofng=no \
--disable-werror \ --disable-werror \
--enable-64-bit-bfd \ --enable-64-bit-bfd \
--enable-new-dtags \ --enable-new-dtags \
--enable-default-hash-style=gnu --enable-default-hash-style=gnu
make make
make DESTDIR=$LFS install make DESTDIR=$LFS install
@ -478,22 +478,22 @@ function eal.install.cross-toolchain() {
cd build cd build
eal.notification.buildconf eal.notification.buildconf
../configure \ ../configure \
--build=$(../config.guess) \ --build=$(../config.guess) \
--host=$LFS_TGT \ --host=$LFS_TGT \
--target=$LFS_TGT \ --target=$LFS_TGT \
LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \
--prefix=/usr \ --prefix=/usr \
--with-build-sysroot=$LFS \ --with-build-sysroot=$LFS \
--enable-default-pie \ --enable-default-pie \
--enable-default-ssp \ --enable-default-ssp \
--disable-nls \ --disable-nls \
--disable-multilib \ --disable-multilib \
--disable-libatomic \ --disable-libatomic \
--disable-libgomp \ --disable-libgomp \
--disable-libquadmath \ --disable-libquadmath \
--disable-libsanitizer \ --disable-libsanitizer \
--disable-libssp \ --disable-libssp \
--disable-libvtv \ --disable-libvtv \
--enable-languages=c,c++ --enable-languages=c,c++
eal.notification.compiling eal.notification.compiling
make make

View file

@ -473,7 +473,7 @@ EOF
mv expect5.45.4 expect mv expect5.45.4 expect
pushd expect/ pushd expect/
eic.system.build.expect.intervention() { eic.system.build.expect.intervention() {
[[ if $(python3 -c 'from pty import spawn; spawn(["echo", "ok"])') != "ok" ]]; then if [[ $(python3 -c 'from pty import spawn; spawn(["echo", "ok"])') != "ok" ]]; then
echo "[i] PS: The error is caused by the chroot environment not being set up for proper PTY operation." echo "[i] PS: The error is caused by the chroot environment not being set up for proper PTY operation."
read -p "[!] Answer unexpected. Continue, enter shell or quit? [c/s/q] " OPT read -p "[!] Answer unexpected. Continue, enter shell or quit? [c/s/q] " OPT
case "$OPT" in case "$OPT" in
@ -521,6 +521,81 @@ EOF
make install make install
install -v -dm755 /usr/share/doc/dejagnu-1.6.3 install -v -dm755 /usr/share/doc/dejagnu-1.6.3
install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-1.6.3 install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-1.6.3
popd
tar -xvf pkgconf-2.3.0.tar.xz
mv pkgconf-2.3.0 pkgconf
pushd pkgconf/
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/pkgconf-2.3.0
make
make install
ln -sv pkgconf /usr/bin/pkg-config
ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1
popd
pushd binutils/
rm -r build
mkdir -v build
cd build
../configure --prefix=/usr \
--sysconfdir=/etc \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--enable-new-dtags \
--with-system-zlib \
--enable-default-hash-style=gnu
make tooldir=/usr
make -k check
grep '^FAIL:' $(find -name '*.log')
make tooldir=/usr install
rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a
popd
tar -xvf gmp-6.3.0.tar.xz
mv gmp-6.3.0 gmp
pushd gmp/
./configure --prefix=/usr \
--enable-cxx \
--disable-static \
--host=none-linux-gnu \
--docdir=/usr/share/doc/gmp-6.3.0
make
make html
make check 2>&1 | tee gmp-check-log
GMP_CHECK=$(awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log)
eic.system.build.gmp.intervention() {
if [ ! "$GMP_CHECK" -ge "199" ]; then
echo "[i] PS: The check did not reach the minimum amount of passed tests required."
read -p "[!] Answer unexpected. Continue, enter shell or quit? [c/s/q] " OPT
case "$OPT" in
c)
echo "OK!"
;;
s)
/bin/sh
eic.system.build.gmp.intervention
;;
q)
exit 1
;;
*)
echo "Invalid command!"
eic.system.build.gmp.intervention
;;
esac
fi
}
eic.system.build.gmp.intervention
make install
make install-html
popd
tar -xvf mpfr-4.2.1.tar.xz
mv mpfr-4.2.1 mpfr
} }
main main