Changeset 4d15d7f for HLFS


Ignore:
Timestamp:
12/09/2006 07:22:38 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
d4ef791
Parents:
02c88a6
Message:

HLFS: Added support for 2.4-branch.

Location:
HLFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r02c88a6 r4d15d7f  
    9797          </xsl:if>
    9898
    99           <!-- NEW toolchain format, from inside ./sources dir unpack binutils and gcc -->
     99          <!-- SVN toolchain format, from inside ./sources dir unpack binutils and gcc -->
    100100          <xsl:if test="@id='ch-tools-embryo-toolchain' or
    101101                        @id='ch-tools-cocoon-toolchain' or
     
    112112            <xsl:text>tar -xvf gcc-testsuite-&gcc-version;.*; &#xA;</xsl:text>
    113113          </xsl:if>
    114           <!-- END new toolchain format -->
     114          <!-- END SVN toolchain format -->
     115
     116          <!-- 2.4-branch toolchain -->
     117          <xsl:if test="@id='ch-tools-gcc-pass2' or @id='ch-system-gcc'">
     118             <xsl:text>pushd ../; tar -xvf gcc-g++-&gcc-version;.*; popd; &#xA;</xsl:text>
     119          </xsl:if>
     120          <xsl:if test="@id='ch-system-gcc' and $testsuite != '0'">
     121            <xsl:text>pushd ../; tar -xvf gcc-testsuite-&gcc-version;.*; popd; &#xA;</xsl:text>
     122          </xsl:if>
     123          <!-- END 2.4-branch toolchain -->
    115124
    116125          <xsl:if test="@id='bootable-bootscripts'">
     
    167176                contains(string(),'sysctl')
    168177                and $grsecurity_host ='n'"/>
     178      <!-- Fix MAKEDEV installation in 2.4-branch -->
     179      <xsl:when test="ancestor::sect1[@id='ch-system-devices'] and
     180                contains(string(),'bzcat MAKEDEV')">
     181        <xsl:text>bzcat /sources/</xsl:text>
     182        <xsl:value-of select="substring-after(string(),'bzcat ')"/>
     183        <xsl:text>&#xA;</xsl:text>
     184      </xsl:when>
    169185      <!-- Setting $LC_ALL and $LANG for /etc/profile -->
    170186      <xsl:when test="ancestor::sect1[@id='bootable-profile'] and
     
    234250        </xsl:choose>
    235251      </xsl:when>
    236       <!-- Fixing butterfly toolchain and other packages test suites run -->
     252      <!-- Fixing butterfly and 2.4-branch toolchain plus other packages test suites run -->
    237253      <xsl:when test="string() = 'make -k check'
    238254                      or string() = 'make check'
    239255                      or string() = 'make tests'">
    240256        <xsl:choose>
    241           <xsl:when test="(ancestor::sect1[@id='ch-system-butterfly-toolchain']
     257          <xsl:when test="((ancestor::sect1[@id='ch-system-butterfly-toolchain']
     258                          or ancestor::sect1[@id='ch-system-gcc'] or
     259                          ancestor::sect1[@id='ch-system-binutils'])
    242260                          and $testsuite != '0') or
    243261                          $testsuite = '2' or $testsuite = '3'">
  • HLFS/master.sh

    r02c88a6 r4d15d7f  
    191191
    192192    # Grab the name of the target
    193     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
     193    name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
    194194
    195195    # Adjust 'name'
     
    221221    LUSER_wrt_target "$this_script" "$PREV"
    222222    # Find the version of the command files, if it corresponds with the building of
    223     # a specific package
    224     pkg_tarball=$(get_package_tarball_name $name)
     223    # a specific package. Fix GCC tarball name for 2.4-branch.
     224    case $name in
     225      gcc ) pkg_tarball=$(get_package_tarball_name gcc-core) ;;
     226        * ) pkg_tarball=$(get_package_tarball_name $name) ;;
     227    esac
    225228    # If $pkg_tarball isn't empty, we've got a package...
    226229    if [ "$pkg_tarball" != "" ] ; then
     
    307310
    308311    # Find the version of the command files, if it corresponds with the building of
    309     # a specific package
    310     pkg_tarball=$(get_package_tarball_name $name)
     312    # a specific package. Fix GCC tarball name for 2.4-branch.
     313    case $name in
     314      gcc ) pkg_tarball=$(get_package_tarball_name gcc-core) ;;
     315        * ) pkg_tarball=$(get_package_tarball_name $name) ;;
     316    esac
    311317
    312318    if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then
     
    350356      # If the testsuites must be run, initialize the log file
    351357      # butterfly-toolchain tests are enabled in 'process_tookchain' function
     358      # 2.4-branch toolchain is ernabled here.
    352359      case $name in
    353         glibc ) [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}"
    354           ;;
    355             * ) [[ "$TEST" > "1" ]]  && CHROOT_wrt_test_log "${this_script}"
    356           ;;
     360        glibc | gcc | binutils)
     361            [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}" ;;
     362        * ) [[ "$TEST" > "1" ]]  && CHROOT_wrt_test_log "${this_script}" ;;
    357363      esac
    358364      # If using optimizations, write the instructions
Note: See TracChangeset for help on using the changeset viewer.