X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Finstall-1;h=be2fd3e15961914df6dce62391d76de47036081a;hb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;hp=169d678f4b704a39cc5a3c17340a93dabfeef27e;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/install-1 b/stage1/install-1 index 169d678..be2fd3e 100755 --- a/stage1/install-1 +++ b/stage1/install-1 @@ -1,4 +1,5 @@ -#!/bin/sh +#!/bin/bash +set -o errexit source ~/.bashrc @@ -29,6 +30,7 @@ export SCRDIR=$(pwd) HOST_CC=gcc CPPFLAGS=-fexceptions \ ipkg_ac ${GMP} "--enable-cxx" ipkg_ac ${MPFR} "--enable-shared" +ipkg_ac ${MPC} ipkg_ac ${PPL} "\ --enable-shared \ --enable-interfaces=c,cxx \ @@ -40,46 +42,70 @@ ipkg_ac ${CLOOG_PPL} "\ --with-bits=gmp \ --with-gmp=/tools \ --with-ppl=/tools" -ipkg_cust ${ZLIB} cis-zlib -ipkg_cust ${BINUTILS} cis-binutils -ipkg_cust ${GCC_CORE} cis-gcc -ipkg_ac ${NCURSES} "--with-shared --without-debug --without-ada --enable-overwrite --with-build-cc=gcc" -ipkg_cust ${BASH} cis-bash +ipkg_ac ${ZLIB} +ipkg_ac ${BINUTILS} "\ + --target=${CLFS_TARGET} \ + --with-lib-path=/tools/lib \ + --disable-nls \ + --enable-shared \ + --disable-multilib" +ipkg_ac ${GCC} "\ + --target=${CLFS_TARGET} \ + --disable-multilib \ + --with-local-prefix=/tools \ + --libexecdir=/tools/lib \ + --disable-nls \ + --disable-libstdcxx-pch \ + --enable-long-long \ + --enable-c99 \ + --enable-shared \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --enable-languages=c,c++" +ipkg_ac ${NCURSES} "\ + --with-shared \ + --without-debug \ + --without-ada \ + --enable-overwrite \ + --with-build-cc=gcc" +ipkg_ac ${BASH} "--without-bash-malloc" ipkg_ac ${BISON} -ipkg_cust ${BZIP2} cis-bzip2 -ipkg_cust ${COREUTILS} cis-coreutils +ipkg_ac ${BZIP2} +ipkg_ac ${COREUTILS} "--enable-install-program=hostname" ipkg_ac ${DIFFUTILS} -ipkg_cust ${FINDUTILS} cis-findutils +ipkg_ac ${FINDUTILS} ipkg_ac ${FILE_PKG} -ipkg_cust ${FLEX} cis-flex -ipkg_ac ${GAWK} "--disable-libsigsegv" -ipkg_cust ${GETTEXT} cis-gettext -ipkg_ac ${GREP} "--disable-perl-regexp --without-included-regex" +ipkg_ac ${FLEX} +ipkg_ac ${GAWK} +ipkg_ac ${GETTEXT} "--disable-shared" +ipkg_ac ${GREP} "\ + --disable-perl-regexp \ + --without-included-regex" ipkg_ac ${GZIP} -ipkg_cust ${MFOUR} cis-m4 +ipkg_ac ${MFOUR} ipkg_ac ${MAKE_PACKAGE} ipkg_ac ${PATCH_PACKAGE} ipkg_ac ${SED} -ipkg_cust ${TAR_PACKAGE} cis-tar -ipkg_cust ${TEXINFO} cis-texinfo +ipkg_ac ${TAR_PACKAGE} +ipkg_ac ${TEXINFO} ipkg_ac ${XZ_UTILS} # Chapter 7 rscr once "Creating directory structure" create-directories rscr once "Creating symbolic links" create-symlinks -ipkg_ac ${NANO} --enable-color --enable-multibuffer -ipkg_cust ${UTIL_LINUX_NG} cis-util-linux-ng -ipkg_cust ${E2FSPROGS} cis-e2fsprogs -ipkg_cust ${SYSVINIT} cis-sysvinit -ipkg_cust ${MODULE_INIT_TOOLS} cis-module-init-tools -ipkg_cust ${UDEV} cis-udev +ipkg_ac ${NANO} "--enable-color --enable-multibuffer" +ipkg_ac ${UTIL_LINUX_NG} +ipkg_ac ${E2FSPROGS} +ipkg_ac ${SYSVINIT} +ipkg_ac ${MODULE_INIT_TOOLS} +ipkg_ac ${UDEV} +ipkg_ac ${KERNEL} rscr once "Creating default users" create-users rscr once "Creating default groups" create-groups rscr once "Creating default log files" create-logfiles -rscr once "Installing kernel sources" install-linux-minimal rscr once "Creating default config files" create-config-files -rscr once "Installing bootscripts" cis-bootscripts +rscr once "Installing bootscripts" install-bootscripts exit $?