r2881 - jhalfs/branches/1.0/HLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Aug 5 04:49:45 PDT 2006


Author: manuel
Date: 2006-08-05 05:49:45 -0600 (Sat, 05 Aug 2006)
New Revision: 2881

Modified:
   jhalfs/branches/1.0/HLFS/master.sh
Log:
Ported r2879 from trunk.

Modified: jhalfs/branches/1.0/HLFS/master.sh
===================================================================
--- jhalfs/branches/1.0/HLFS/master.sh	2006-08-05 11:41:45 UTC (rev 2880)
+++ jhalfs/branches/1.0/HLFS/master.sh	2006-08-05 11:49:45 UTC (rev 2881)
@@ -68,14 +68,30 @@
 
   echo "${tab_}${tab_}${GREEN}toolchain ${L_arrow}${toolchain}${R_arrow}"
 
+  #
+  # Safe method to remove existing toolchain dirs
+  pkg_tarball=$(get_package_tarball_name "binutils")
+  wrt_remove_existing_dirs  "$pkg_tarball"
+  pkg_tarball=$(get_package_tarball_name "gcc-core")
+  wrt_remove_existing_dirs  "$pkg_tarball"
+  #
+  # Manually remove the toolchain directories..
+  tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's at -toolchain@@'`
+(
+cat << EOF
+	@rm -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-toolchain && \\
+	rm  -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-build
+EOF
+) >> $MKFILE.tmp
+
   case ${toolchain} in
     *butterfly*)
-      [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
 (
 cat << EOF
 	@echo "export PKGDIR=\$(SRC)" > envars
 EOF
 ) >> $MKFILE.tmp
+      [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
       wrt_run_as_chroot1 "$toolchain" "$this_script"
       ;;
 
@@ -369,7 +385,7 @@
       case $name in
         glibc ) [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
           ;;
-	    * ) [[ "$TEST"  = "2" ]] && [[ "$TEST"  = "3" ]] && wrt_test_log2 "${this_script}"
+            * ) [[ "$TEST" > "1" ]] && wrt_test_log2 "${this_script}"
           ;;
       esac
       # If using optimizations, write the instructions




More information about the alfs-log mailing list