CLFS3: Fixed endian setting in uClibc configuration.
This commit is contained in:
parent
5120fdc624
commit
9436828ae9
3 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
<!-- XSLT stylesheet to create shell scripts from CLFS2 books. -->
|
<!-- XSLT stylesheet to create shell scripts from CLFS2 books. -->
|
||||||
|
|
||||||
|
<!-- Endian level -->
|
||||||
|
<xsl:param name="endian" select="xbig"/>
|
||||||
|
|
||||||
<!-- Time zone -->
|
<!-- Time zone -->
|
||||||
<xsl:param name="timezone" select="GMT"/>
|
<xsl:param name="timezone" select="GMT"/>
|
||||||
|
|
||||||
|
@ -97,6 +100,9 @@
|
||||||
<xsl:value-of select="substring-after(string(),'tar.gz')"/>
|
<xsl:value-of select="substring-after(string(),'tar.gz')"/>
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<!-- Select Endian level for uClibc -->
|
||||||
|
<xsl:when test="$endian='xbig' and contains(string(),'LITTLE_ENDIAN')"/>
|
||||||
|
<xsl:when test="$endian='xlittle' and contains(string(),'BIG_ENDIAN')"/>
|
||||||
<!-- Setting $LANG for /etc/profile -->
|
<!-- Setting $LANG for /etc/profile -->
|
||||||
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
|
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
|
||||||
contains(string(),'export LANG=')">
|
contains(string(),'export LANG=')">
|
||||||
|
|
|
@ -319,6 +319,12 @@ menu "--- BOOK Settings"
|
||||||
default "-mabi=n32" if ABI_N32
|
default "-mabi=n32" if ABI_N32
|
||||||
default "-mabi=64" if ABI_64
|
default "-mabi=64" if ABI_64
|
||||||
|
|
||||||
|
config ENDIAN
|
||||||
|
string
|
||||||
|
depends BOOK_CLFS3 && (ARCH_MIPS || ARCH_ARM)
|
||||||
|
default "little" if PROC_mipsel || PROC_ARM || PROC_ARM5L
|
||||||
|
default "big" if PROC_mips || PROC_ARM5B
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Build method"
|
prompt "Build method"
|
||||||
depends BOOK_CLFS
|
depends BOOK_CLFS
|
||||||
|
|
|
@ -111,6 +111,7 @@ extract_commands() { #
|
||||||
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
|
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
|
||||||
xsltproc --nonet \
|
xsltproc --nonet \
|
||||||
--xinclude \
|
--xinclude \
|
||||||
|
--stringparam endian x$ENDIAN \
|
||||||
--stringparam timezone $TIMEZONE \
|
--stringparam timezone $TIMEZONE \
|
||||||
--stringparam page $PAGE \
|
--stringparam page $PAGE \
|
||||||
--stringparam lang $LANG \
|
--stringparam lang $LANG \
|
||||||
|
|
Reference in a new issue