Changeset d540567


Ignore:
Timestamp:
03/18/2006 11:42:56 AM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
389fe2a
Parents:
e2860d3
Message:

Handled and via XSL.
Fixed the chapter05 GCC installation test run.
Fixed blfs-bootscripts installation.
The build_Makefile code need be adapted to that new XSL code.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    re2860d3 rd540567  
    1616  <!-- What libc implentation must be used? -->
    1717  <xsl:param name="model" select="glibc"/>
     18
     19  <!-- Is the host kernel using grsecurity? -->
     20  <xsl:param name="grsecurity_host" select="0"/>
     21
     22  <!-- Compile the keymap into the kernel? -->
     23  <xsl:param name="keymap" select="none"/>
    1824
    1925  <!-- Run test suites?
     
    7884          </xsl:otherwise>
    7985        </xsl:choose>
    80         <xsl:if test="sect2[@role='installation'] or
     86        <xsl:if test="(sect2[@role='installation'] and
     87                     not(@id='bootable-kernel')) or
    8188                     @id='ch-tools-adjusting' or
    8289                     @id='ch-system-readjusting'">
     
    153160        <xsl:text>&#xA;</xsl:text>
    154161      </xsl:when>
     162      <!-- grsecurity kernel in the host? -->
     163      <xsl:when test="ancestor::sect1[@id='ch-system-kernfs'] and
     164                contains(string(),'sysctl')
     165                and $grsecurity_host ='0'"/>
    155166      <!-- Setting $LC_ALL and $LANG for /etc/profile -->
    156167      <xsl:when test="ancestor::sect1[@id='bootable-profile'] and
     
    162173        <xsl:text>&#xA;</xsl:text>
    163174      </xsl:when>
     175      <!-- Fixing bootscripts installation -->
     176      <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
     177                string() = 'make install'">
     178        <xsl:text>make install&#xA;</xsl:text>
     179        <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
     180      </xsl:when>
     181      <!-- Compile the keymap into the kernel? -->
     182      <xsl:when test="contains(string(),'defkeymap') and
     183                $keymap = 'none'"/>
    164184      <!-- Copying the kernel config file -->
    165185      <xsl:when test="string() = 'make mrproper'">
     
    198218                ancestor::sect1[@id='ch-system-binutils']
    199219                and $testsuite = '0'"/>
    200       <!-- Don't stop on strip run -->
    201       <xsl:when test="contains(string(),'strip ')">
     220      <!-- Don't stop on strip run and chapter05 GCC installation test-->
     221      <xsl:when test="contains(string(),'strip ') or
     222                ancestor::sect2[@id='testing-gcc']">
    202223        <xsl:apply-templates/>
    203224        <xsl:text> || true&#xA;</xsl:text>
     
    219240      <xsl:when test="ancestor::sect1[@id='ch-system-groff']">
    220241        <xsl:text>$PAGE</xsl:text>
     242      </xsl:when>
     243      <xsl:when test="ancestor::sect1[@id='bootable-kernel']">
     244        <xsl:value-of select="$keymap"/>
    221245      </xsl:when>
    222246      <xsl:otherwise>
  • common/common-functions

    re2860d3 rd540567  
    661661                  --stringparam model $MODEL \
    662662                  --stringparam testsuite $TEST \
     663                  --stringparam keymap $KEYMAP \
     664                  --stringparam grsecurity_host $GRSECURITY_HOST \
    663665                  -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    664666        for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do
  • common/config

    re2860d3 rd540567  
    2727#  2 = all chapter06 testsuites
    2828#  3 = all chapter05 and chapter06 testsuites
    29 TEST=0
     29TEST=1
    3030
    3131#--- Run the stripping phases  0(no)/1(yes)
    32 STRIP=0
     32STRIP=1
    3333
    3434#--- page definition for groff letter/A4
     
    4545LANG=$LANG
    4646
    47 #--- Include the keymap in the kernel if defined
    48 KEYMAP=/usr/share/kbd/keymaps/i386/qwerty/us.map.gz
     47#--- Include the keymap in the kernel if defined. Path to the
     48#    keymap file relative to /usr/share/kbd/keymaps/
     49#    (e.g., i386/qwerty/us.map.gz) or "none"
     50KEYMAP=none
    4951
    5052#=== Variables needed by ICA ===
  • common/func_validate_configs.sh

    re2860d3 rd540567  
    9393      for config_param in KEYMAP; do
    9494        [[ $1 = "1" ]] && echo "`eval echo $PARAM_VALS`"
    95         [[ -z "${!config_param}" ]] && continue
    96         [[ -e "${!config_param}" ]] && [[ -s "${!config_param}" ]] && continue
     95        [[ "${!config_param}" = "none" ]] && continue
     96        [[ -e "/usr/share/kbd/keymaps/${!config_param}" ]] && [[ -s "/usr/share/kbd/keymaps/${!config_param}" ]] && continue
    9797
    9898          # If you make it this far then there is a problem
Note: See TracChangeset for help on using the changeset viewer.