X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fhv-install-2;h=f1e3a0893093983b404fc4c1ee3da4e1677e7827;hb=3a7d016a0246156de63a6f98bbf5be2e95230060;hp=aa545688813a5b2c6cc308a2bec268086d0ea3c7;hpb=a5e9d35a909f5561e79244e581d99a53e1bbda97;p=hvlinux.git diff --git a/stage1/hv-install-2 b/stage1/hv-install-2 index aa54568..f1e3a08 100755 --- a/stage1/hv-install-2 +++ b/stage1/hv-install-2 @@ -6,68 +6,70 @@ 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" +ipkgcc ${NANO} "--enable-color --enable-multibuffer" PKG_CONFIG=true \ - ipkg ${UTIL_LINUX} "\ + ipkgcc ${UTIL_LINUX} "\ --exec-prefix=/tools \ - --enable-login-utils \ + --disable-login \ + --disable-sulogin \ + --disable-su \ --disable-makeinstall-chown" -ipkg ${E2FSPROGS} -ipkg -m noac ${SYSVINIT} -ipkg ${MODULE_INIT_TOOLS} -ipkg ${UDEV} +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