X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Finstall-1;h=1d6b6c818a544a8171c88a579cccb5fc3777e923;hb=907fcfdccdd0ddd33accef87490f9e0b750797ad;hp=3207709c35f2bb1455c388cc184a00b64711c1c4;hpb=1311fe88ef53309942180e2ef9b6031d2a0edcf7;p=hvlinux.git diff --git a/stage0/install-1 b/stage0/install-1 index 3207709..1d6b6c8 100755 --- a/stage0/install-1 +++ b/stage0/install-1 @@ -1,55 +1,20 @@ #!/bin/bash -source ~/.bashrc - -LFS_STAGE=stage0 - # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions +hvtrap_setup source ../packages-list -export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}" -export LFS_LOG_DIR=${LFS}/var/log/hvlinux-install/${LFS_STAGE} -export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log -export LFS_TMP="${LFS}/tmp" - init_log_file -ipkg_cust ${KERNEL} cis-linux-api-headers - -case "${HVL_TARGET}" in - x86*) - ipkg_ac ${FILE_PKG} - ipkg_cust ${NCURSES} cis-ncurses "--without-debug --without-shared" - ;; -esac - -CPPFLAGS=-fexceptions \ - ipkg_ac ${GMP} "--enable-cxx" - -LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ - ipkg_ac ${MPFR} "--enable-shared --with-gmp=/cross-tools" - -LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ - ipkg_ac ${MPC} "--enable-shared \ - --with-gmp=/cross-tools \ - --with-mpfr=/cross-tools" - -LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ - ipkg_ac ${PPL} "--enable-shared \ - --enable-interfaces=c,cxx \ - --disable-optimization \ - --with-libgmp-prefix=/cross-tools \ - --with-libgmpxx-prefix=/cross-tools" +rscr mult "Performing pre-install" pre-install -LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ - ipkg_cust ${CLOOG_PPL} cis-cloog-ppl "--enable-shared --with-bits=gmp \ - --with-gmp=/cross-tools --with-ppl=/cross-tools" +# Logging-in as 'lfs' user, and executing the install-2 script. The +# 'su -' command starts with a clean environment and enters the home +# directory of the user. +su - lfs -c "cd ${PWD}; ./install-2" -ipkg_cust ${BINUTILS} cis-binutils -ipkg ${GCC} cis-gcc-pass1 "${GCC}-pass1" -ipkg_cust ${EGLIBC} cis-eglibc -ipkg ${GCC} cis-gcc-pass2 "${GCC}-pass2" +echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" -exit $? +exit 0