X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage0%2Finstall-1;h=d8e60eb13683df79a7b700bc605d9aba70239551;hb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;hp=4b7a85a49764a42229d0a5b057bc0f8cb24da42f;hpb=f41e274186ffbed8f6bdc4d44da23758c83f1bb9;p=hvlinux.git diff --git a/stage0/install-1 b/stage0/install-1 index 4b7a85a..d8e60eb 100755 --- a/stage0/install-1 +++ b/stage0/install-1 @@ -16,12 +16,15 @@ export LFS_TMP="${LFS}/tmp" init_log_file -ipkg_cust ${KERNEL} cis-linux-api-headers +# Scripts directory +export SCRDIR=$(pwd) + +ipkg_ac ${KERNEL} case "${HVL_TARGET}" in x86*) ipkg_ac ${FILE_PKG} - ipkg_cust ${NCURSES} cis-ncurses "\ + ipkg_ac ${NCURSES} "\ --without-debug \ --without-shared" ;; @@ -44,7 +47,7 @@ ipkg_ac ${PPL} "\ --disable-optimization \ --with-libgmp-prefix=/cross-tools \ --with-libgmpxx-prefix=/cross-tools" -ipkg_cust ${CLOOG_PPL} cis-cloog-ppl "\ +ipkg_ac ${CLOOG_PPL} "\ --enable-shared \ --with-bits=gmp \ --with-gmp=/cross-tools \ @@ -52,9 +55,35 @@ ipkg_cust ${CLOOG_PPL} cis-cloog-ppl "\ LDFLAGS="" -ipkg_cust ${BINUTILS} cis-binutils -ipkg ${GCC} cis-gcc-pass1 "${GCC}-pass1" -ipkg_cust ${EGLIBC} cis-eglibc -ipkg ${GCC} cis-gcc-pass2 "${GCC}-pass2" +AR=ar AS=as \ + ipkg_ac ${BINUTILS} "\ + --host=${CLFS_HOST} \ + --target=${CLFS_TARGET} \ + --with-sysroot=${CLFS} \ + --with-lib-path=/tools/lib \ + --disable-nls \ + --enable-shared \ + --disable-multilib" + +GCC_PASS1="1" AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ + ipkg ${GCC} cis-ac "${GCC}-pass1" + +BUILD_CC="gcc" \ + CC="${CLFS_TARGET}-gcc ${CLFS_BUILDFLAGS}" \ + AR="${CLFS_TARGET}-ar" \ + RANLIB="${CLFS_TARGET}-ranlib" \ + ipkg_ac ${EGLIBC} "\ + --host=${CLFS_TARGET} \ + --build=${CLFS_HOST} \ + --disable-profile \ + --enable-add-ons \ + --with-tls \ + --enable-kernel=$(get_pkg_ver ${KERNEL}) \ + --with-__thread \ + --with-binutils=/cross-tools/bin \ + --with-headers=/tools/include" + +GCC_PASS2="1" AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ + ipkg ${GCC} cis-ac "${GCC}-pass2" exit $?