X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Finstall-1;h=1d6b6c818a544a8171c88a579cccb5fc3777e923;hb=907fcfdccdd0ddd33accef87490f9e0b750797ad;hp=6f07a43bcbbe4d3c4d7daeb63041090e432b3587;hpb=f9cf3632a64429991fa5e6f556b0c4017e0e9435;p=hvlinux.git diff --git a/stage0/install-1 b/stage0/install-1 index 6f07a43..1d6b6c8 100755 --- a/stage0/install-1 +++ b/stage0/install-1 @@ -1,40 +1,20 @@ -#!/bin/sh - -source ~/.bashrc - -LFS_STAGE=stage0 +#!/bin/bash # 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 -ipkg_ac ${FILE_PKG} -ipkg_cust ${NCURSES} cis-ncurses "--without-debug --without-shared" -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 ${PPL} "--enable-shared \ - --enable-interfaces=c,cxx \ - --disable-optimization \ - --with-libgmp-prefix=/cross-tools \ - --with-libgmpxx-prefix=/cross-tools" -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" -ipkg_cust ${BINUTILS} cis-binutils -ipkg ${GCC_CORE} cis-gcc-pass1 "${GCC_CORE}-pass1" -ipkg_cust ${EGLIBC} cis-eglibc -ipkg ${GCC_CORE} cis-gcc-pass2 "${GCC_CORE}-pass2" +rscr mult "Performing pre-install" pre-install + +# 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" + +echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" -exit $? +exit 0