#!/bin/bash
-
-LFS_STAGE=stage2
-
-export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}"
-export LFS_LOG_DIR=/var/log/hvlinux-install/${LFS_STAGE}
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP=/tmp
+set -o errtrace # Let shell functions inherit ERR trap. Same as `set -E'.
# Reading system configuration informations, functions and package versions.
source ../sysinfos
source ../functions
+hvtrap_setup
source ../packages-list
source /etc/profile
init_log_file
-# Scripts directory
-export SCRDIR=$(pwd)
-
ipkg -l "${PERL}-pass1" ${PERL}
ipkg -m noac ${KERNEL}
ipkg -m noac ${MANPAGES}
unset CXX
unset LDFLAGS
-ipkg ${ZLIB}
+ipkg -m acnb ${ZLIB}
ipkg ${BINUTILS}
ipkg ${GCC}
rscr mult "Testing toolchain" toolchain-test