Changeset 1e69324


Ignore:
Timestamp:
08/05/2006 11:37:27 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
28f4756
Parents:
33c7b13
Message:

HLFS fixes: remove existing toolchain dirs due failed builds and fix the wrt_test_log2 test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    r33c7b13 r1e69324  
    6969  echo "${tab_}${tab_}${GREEN}toolchain ${L_arrow}${toolchain}${R_arrow}"
    7070
     71  #
     72  # Safe method to remove existing toolchain dirs
     73  pkg_tarball=$(get_package_tarball_name "binutils")
     74  wrt_remove_existing_dirs  "$pkg_tarball"
     75  pkg_tarball=$(get_package_tarball_name "gcc-core")
     76  wrt_remove_existing_dirs  "$pkg_tarball"
     77  #
     78  # Manually remove the toolchain directories..
     79  tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's@-toolchain@@'`
     80(
     81cat << EOF
     82        @rm -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-toolchain && \\
     83        rm  -rf \$(MOUNT_PT)\$(SRC)/${tc_phase}-build
     84EOF
     85) >> $MKFILE.tmp
     86
    7187  case ${toolchain} in
    7288    *butterfly*)
     89(
     90cat << EOF
     91        @echo "export PKGDIR=\$(SRC)" > envars
     92EOF
     93) >> $MKFILE.tmp
    7394      [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
    74 (
    75 cat << EOF
    76         @echo "export PKGDIR=\$(SRC)" > envars
    77 EOF
    78 ) >> $MKFILE.tmp
    7995      wrt_run_as_chroot1 "$toolchain" "$this_script"
    8096      ;;
     
    370386        glibc ) [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
    371387          ;;
    372             * ) [[ "$TEST"  = "2" ]] && [[ "$TEST"  = "3" ]] && wrt_test_log2 "${this_script}"
     388            * ) [[ "$TEST" > "1" ]] && wrt_test_log2 "${this_script}"
    373389          ;;
    374390      esac
Note: See TracChangeset for help on using the changeset viewer.