X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fhv-install-2;h=f1e3a0893093983b404fc4c1ee3da4e1677e7827;hb=4e78d26dd7f5e46a21cdc916e031f1b4a68578c0;hp=a063fb42620b70ac5ecd8fd996af50483bee6e0c;hpb=19609cec14f0e747c491985785c4d714f7f654de;p=hvlinux.git diff --git a/stage1/hv-install-2 b/stage1/hv-install-2 index a063fb4..f1e3a08 100755 --- a/stage1/hv-install-2 +++ b/stage1/hv-install-2 @@ -2,72 +2,75 @@ source ~/.bashrc -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list +source ../functions/main init_log_file +# ipkg in cross-compile mode, by specifying an install directory of ${LFS} +function ipkgcc() +{ + ipkg -i ${LFS} ${*} +} + # Building temporary system -HOST_CC=gcc CPPFLAGS=-fexceptions \ - ipkg ${GMP} "--enable-cxx" -ipkg ${MPFR} "--enable-shared" -ipkg ${MPC} -ipkg ${PPL} "\ - --enable-shared \ - --enable-interfaces=c,cxx \ - --disable-optimization \ - --with-libgmp-prefix=/tools \ - --with-libgmpxx-prefix=/tools" -ipkg ${CLOOG_PPL} "\ - --enable-shared \ - --with-bits=gmp \ - --with-gmp=/tools \ - --with-ppl=/tools" -ipkg -m acnb ${ZLIB} -ipkg ${BINUTILS} -ipkg ${GCC} -ipkg ${NCURSES} "\ +ipkgcc ${GMP} "--enable-cxx" +ipkgcc ${MPFR} +ipkgcc ${MPC} +ipkgcc ${ISL} +ipkgcc ${CLOOG} "\ + --with-isl=system" +ipkgcc -m acnb ${ZLIB} +ipkgcc ${BINUTILS} +ipkgcc ${GCC} +ipkgcc ${NCURSES} "\ --with-shared \ --without-debug \ --without-ada \ --enable-overwrite \ --with-build-cc=gcc" -ipkg ${BASH} "--without-bash-malloc" -ipkg ${BISON} -ipkg -m noac ${BZIP2} -ipkg ${COREUTILS} "--enable-install-program=hostname" -ipkg ${DIFFUTILS} -ipkg ${FINDUTILS} -ipkg ${FILE_PKG} -ipkg ${FLEX} -ipkg ${GAWK} -ipkg ${GETTEXT} -ipkg ${GREP} "\ +ipkgcc ${BASH} "--without-bash-malloc" +ipkgcc -m noac ${BZIP2} +ipkgcc -m acnb -j ${COREUTILS} "--enable-install-program=hostname" +ipkgcc ${DIFFUTILS} +ipkgcc ${FINDUTILS} +ipkgcc ${FILE_PKG} +ipkgcc ${FLEX} +ipkgcc ${GAWK} +ipkgcc -d gettext-tools ${GETTEXT} "--disable-shared" +ipkgcc ${GREP} "\ --disable-perl-regexp \ --without-included-regex" -ipkg ${GZIP} -ipkg ${MFOUR} -ipkg ${MAKE_PACKAGE} -ipkg ${PATCH_PACKAGE} -ipkg ${SED} -ipkg ${TAR_PACKAGE} -ipkg ${TEXINFO} -ipkg ${XZ_UTILS} +ipkgcc ${GZIP} +ipkgcc ${MFOUR} +ipkgcc ${MAKE_PACKAGE} +ipkgcc ${PATCH_PACKAGE} +ipkgcc ${SED} +ipkgcc ${TAR_PACKAGE} +ipkgcc ${TEXINFO} +ipkgcc ${XZ_UTILS} # Chapter 7 rscr once "Creating directory structure" create-directories rscr once "Creating symbolic links" create-symlinks -ipkg ${NANO} "--enable-color --enable-multibuffer" -ipkg ${UTIL_LINUX_NG} -ipkg ${E2FSPROGS} -ipkg -m noac ${SYSVINIT} -ipkg ${MODULE_INIT_TOOLS} -ipkg ${UDEV} -ipkg -m noac ${KERNEL} +ipkgcc ${NANO} "--enable-color --enable-multibuffer" +PKG_CONFIG=true \ + ipkgcc ${UTIL_LINUX} "\ + --exec-prefix=/tools \ + --disable-login \ + --disable-sulogin \ + --disable-su \ + --disable-makeinstall-chown" +ipkgcc ${SHADOW} "\ + --sysconfdir=/etc \ + --cache-file=config.cache" +LDFLAGS="-Wl,-lpthread,-ldl" \ + ipkgcc ${E2FSPROGS} +ipkgcc -m noac ${SYSVINIT} +ipkgcc ${KMOD} "--bindir=/bin" +ipkgcc ${EUDEV} +ipkg -c -m noac ${KERNEL} rscr once "Creating default users" create-users rscr once "Creating default groups" create-groups