Changeset 650acce


Ignore:
Timestamp:
07/28/2007 03:40:53 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
c93f2b0
Parents:
7a84ba7
Message:

CLFS: Fixed Sparc64 build flags issues.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r7a84ba7 r650acce  
    4242  <!-- Locale settings -->
    4343  <xsl:param name="lang" select="C"/>
     44
     45  <!-- Sparc64 processor type -->
     46  <xsl:param name="sparc" select="1"/>
    4447
    4548  <xsl:template match="/">
     
    281284        <xsl:value-of select="$page"/>
    282285      </xsl:when>
     286      <xsl:when test="ancestor::sect1[@id='ch-cross-tools-flags']">
     287        <xsl:choose>
     288          <xsl:when test="contains(string(),'BUILD32')">
     289            <xsl:choose>
     290              <xsl:when test="$sparc = '1' or $sparc = '2'">
     291                <xsl:text>-m32 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     292              </xsl:when>
     293              <xsl:when test="$sparc = '3'">
     294                <xsl:text>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     295              </xsl:when>
     296            </xsl:choose>
     297          </xsl:when>
     298          <xsl:when test="contains(string(),'BUILD64')">
     299            <xsl:choose>
     300              <xsl:when test="$sparc = '1' or $sparc = '2'">
     301                <xsl:text>-m64 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     302              </xsl:when>
     303              <xsl:when test="$sparc = '3'">
     304                <xsl:text>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     305              </xsl:when>
     306            </xsl:choose>
     307          </xsl:when>
     308          <xsl:when test="contains(string(),'GCCTARGET')">
     309            <xsl:choose>
     310              <xsl:when test="$sparc = '1' or $sparc = '2'">
     311                <xsl:text>-mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     312              </xsl:when>
     313              <xsl:when test="$sparc = '3'">
     314                <xsl:text>-mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     315              </xsl:when>
     316            </xsl:choose>
     317          </xsl:when>
     318        </xsl:choose>
     319      </xsl:when>
    283320      <xsl:otherwise>
    284321        <xsl:text>**EDITME</xsl:text>
  • Config.in

    r7a84ba7 r650acce  
    144144        choice
    145145                prompt  "Processor type"
    146                 depends (BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3) && ((ARCH_X86 && !(DATA_64 || DATA_MULTI)) || ARCH_MIPS || ARCH_HPPA || ARCH_ALPHA || (ARCH_ARM && BOOK_CLFS3))
     146                depends (BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3) && ((ARCH_X86 && !(DATA_64 || DATA_MULTI)) || ARCH_MIPS || ARCH_HPPA || ARCH_ALPHA || (ARCH_SPARC && (DATA_64 || DATA_MULTI)) || (ARCH_ARM && BOOK_CLFS3))
    147147                help
    148148                        #-- Choose the target system processor
     
    201201                config  PROC_ARM5B
    202202                        bool    "Generic arm, version 5, big endian"                    if ARCH_ARM
     203
     204                config  PROC_ULTRA1
     205                        bool    "UtraSparc"                                             if ARCH_SPARC && (DATA_64 || DATA_MULTI)
     206
     207                config  PROC_ULTRA2
     208                        bool    "UtraSparc2"                                            if ARCH_SPARC && (DATA_64 || DATA_MULTI)
     209
     210                config  PROC_ULTRA3
     211                        bool    "UtraSparc3"                                            if ARCH_SPARC && (DATA_64 || DATA_MULTI)
    203212        endchoice
    204213
     
    278287        config  PLATFORM
    279288                string
    280                 default "GENERIC"                       if (!BOOK_CLFS3) || PLATFORM_GENERIC
    281                 default "WRT - Wireless Router"         if PLATFORM_WRT
     289                default "GENERIC"                       if (!BOOK_CLFS3) || PLATFORM_GENERIC
     290                default "WRT - Wireless Router"         if PLATFORM_WRT
     291
     292        config  SPARC64_PROC
     293                string
     294                default "none"                          if !(ARCH_SPARC && (DATA_64 || DATA_MULTI))
     295                default "1"                             if PROC_ULTRA1
     296                default "2"                             if PROC_ULTRA2
     297                default "3"                             if PROC_ULTRA3
    282298
    283299        config  ARCH
  • common/libs/func_book_parser

    r7a84ba7 r650acce  
    9494                 --stringparam page $PAGE \
    9595                 --stringparam lang $LANG \
     96                 --stringparam sparc $SPARC64_PROC \
    9697                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    9798      ;;
Note: See TracChangeset for help on using the changeset viewer.