X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fhv-install-2;h=5bff46283cbf426f2117da339d4082f2997f2848;hb=4e78d26dd7f5e46a21cdc916e031f1b4a68578c0;hp=8b6c069d6a8580565fb8fb0d68f2077ca9927286;hpb=2ad910e22979500192ea43d5599ad003440744a4;p=hvlinux.git diff --git a/stage0/hv-install-2 b/stage0/hv-install-2 index 8b6c069..5bff462 100755 --- a/stage0/hv-install-2 +++ b/stage0/hv-install-2 @@ -1,51 +1,50 @@ #!/bin/bash source ~/.bashrc - -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main init_log_file -ipkg -m noac ${KERNEL} - -case "${HVL_TARGET}" in - x86*) - ipkg ${FILE_PKG} - ipkg ${NCURSES} - ;; -esac +if [ x"${INSTALL_GLIBC}" == x"1" ]; then + ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL} +fi -CPPFLAGS=-fexceptions \ - ipkg ${GMP} "--enable-cxx" +ipkg ${GMP} "\ + --enable-cxx \ + --disable-static" -export LDFLAGS="-Wl,-rpath,/cross-tools/lib" +export LDFLAGS="-Wl,-rpath,${CROSS_TOOLS_DIR}/lib" ipkg ${MPFR} "\ - --enable-shared \ - --with-gmp=/cross-tools" + --disable-static \ + --with-gmp=${CROSS_TOOLS_DIR}" + ipkg ${MPC} "\ - --with-gmp=/cross-tools \ - --with-mpfr=/cross-tools" -ipkg ${PPL} "\ - --enable-shared \ - --enable-interfaces=c,cxx \ - --disable-optimization \ - --with-libgmp-prefix=/cross-tools \ - --with-libgmpxx-prefix=/cross-tools" -ipkg ${CLOOG_PPL} "\ - --enable-shared \ + --disable-static \ + --with-gmp=${CROSS_TOOLS_DIR} \ + --with-mpfr=${CROSS_TOOLS_DIR}" + +ipkg ${ISL} "\ + --disable-static \ + --with-gmp-prefix=${CROSS_TOOLS_DIR}" + +ipkg ${CLOOG} "\ + --disable-static \ --with-bits=gmp \ - --with-gmp=/cross-tools \ - --with-ppl=/cross-tools" + --with-gmp-prefix=${CROSS_TOOLS_DIR}" LDFLAGS="" -ipkg ${BINUTILS} +ipkg -i ${LFS} ${BINUTILS} ipkg -l "${GCC}-pass1" ${GCC} -ipkg ${EGLIBC} -ipkg -l "${GCC}-pass2" ${GCC} + +if [ x"${INSTALL_GLIBC}" == x"1" ]; then + ipkg ${GLIBC} + ipkg -l "${GCC}-pass2" ${GCC} +fi + +if [ x"${HVL_TARGET}" == x"avr" ]; then + ipkg ${AVRLIBC} "--host=avr" +fi exit $?