CLFS: Fixed Sparc64 build flags issues.
This commit is contained in:
parent
7a84ba7713
commit
650acce1b8
3 changed files with 57 additions and 3 deletions
|
@ -42,6 +42,9 @@
|
|||
<!-- Locale settings -->
|
||||
<xsl:param name="lang" select="C"/>
|
||||
|
||||
<!-- Sparc64 processor type -->
|
||||
<xsl:param name="sparc" select="1"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="//sect1"/>
|
||||
</xsl:template>
|
||||
|
@ -280,6 +283,40 @@
|
|||
<xsl:when test="ancestor::sect1[@id='ch-system-groff']">
|
||||
<xsl:value-of select="$page"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="ancestor::sect1[@id='ch-cross-tools-flags']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(),'BUILD32')">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$sparc = '1' or $sparc = '2'">
|
||||
<xsl:text>-m32 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$sparc = '3'">
|
||||
<xsl:text>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains(string(),'BUILD64')">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$sparc = '1' or $sparc = '2'">
|
||||
<xsl:text>-m64 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$sparc = '3'">
|
||||
<xsl:text>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains(string(),'GCCTARGET')">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$sparc = '1' or $sparc = '2'">
|
||||
<xsl:text>-mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$sparc = '3'">
|
||||
<xsl:text>-mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>**EDITME</xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
|
|
22
Config.in
22
Config.in
|
@ -143,7 +143,7 @@ menu "--- BOOK Settings"
|
|||
|
||||
choice
|
||||
prompt "Processor type"
|
||||
depends (BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3) && ((ARCH_X86 && !(DATA_64 || DATA_MULTI)) || ARCH_MIPS || ARCH_HPPA || ARCH_ALPHA || (ARCH_ARM && BOOK_CLFS3))
|
||||
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))
|
||||
help
|
||||
#-- Choose the target system processor
|
||||
|
||||
|
@ -200,6 +200,15 @@ menu "--- BOOK Settings"
|
|||
|
||||
config PROC_ARM5B
|
||||
bool "Generic arm, version 5, big endian" if ARCH_ARM
|
||||
|
||||
config PROC_ULTRA1
|
||||
bool "UtraSparc" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
|
||||
|
||||
config PROC_ULTRA2
|
||||
bool "UtraSparc2" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
|
||||
|
||||
config PROC_ULTRA3
|
||||
bool "UtraSparc3" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
|
||||
endchoice
|
||||
|
||||
choice
|
||||
|
@ -277,8 +286,15 @@ menu "--- BOOK Settings"
|
|||
|
||||
config PLATFORM
|
||||
string
|
||||
default "GENERIC" if (!BOOK_CLFS3) || PLATFORM_GENERIC
|
||||
default "WRT - Wireless Router" if PLATFORM_WRT
|
||||
default "GENERIC" if (!BOOK_CLFS3) || PLATFORM_GENERIC
|
||||
default "WRT - Wireless Router" if PLATFORM_WRT
|
||||
|
||||
config SPARC64_PROC
|
||||
string
|
||||
default "none" if !(ARCH_SPARC && (DATA_64 || DATA_MULTI))
|
||||
default "1" if PROC_ULTRA1
|
||||
default "2" if PROC_ULTRA2
|
||||
default "3" if PROC_ULTRA3
|
||||
|
||||
config ARCH
|
||||
string
|
||||
|
|
|
@ -93,6 +93,7 @@ extract_commands() { #
|
|||
--stringparam timezone $TIMEZONE \
|
||||
--stringparam page $PAGE \
|
||||
--stringparam lang $LANG \
|
||||
--stringparam sparc $SPARC64_PROC \
|
||||
-o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
|
||||
;;
|
||||
|
||||
|
|
Reference in a new issue