-Now using a single file for all custom definitions and functions for each package.
[hvlinux.git] / stage0 / install-1
index 4b7a85a..d8e60eb 100755 (executable)
@@ -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 $?