aboutsummaryrefslogtreecommitdiffstats
path: root/docs/usermanual
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2010-06-20 14:35:05 -0700
committerChris Larson <chris_larson@mentor.com>2010-07-26 10:59:36 -0700
commit87dc166bade8722af4076c8644cac6a0a437826f (patch)
treee52609ad65bb807cd6856cbe95c2f28783000618 /docs/usermanual
parentc47c6611be11d3b80f61a75f80187e9398eccbd4 (diff)
downloadopenembedded-87dc166bade8722af4076c8644cac6a0a437826f.tar.gz
Siteinfo cleanup
- Don't supply site files for native - Split up the site information, so we don't need to add every single combination of os and architecture to the siteinfo.bbclass - Instead of specifically looking for '${FILE_DIRNAME}/site-${PV}/<sitefile>', leverage FILESPATH. Now it searches the paths in both BBPATH and FILESPATH for "site/<sitefile>". - SITEINFO_ENDIANESS -> SITEINFO_ENDIANNESS Signed-off-by: Chris Larson <clarson@kergoth.com>
Diffstat (limited to 'docs/usermanual')
-rw-r--r--docs/usermanual/chapters/recipes.xml12
-rw-r--r--docs/usermanual/reference/class_siteinfo.xml8
2 files changed, 10 insertions, 10 deletions
diff --git a/docs/usermanual/chapters/recipes.xml b/docs/usermanual/chapters/recipes.xml
index 5b0ff143e4..acb0705c90 100644
--- a/docs/usermanual/chapters/recipes.xml
+++ b/docs/usermanual/chapters/recipes.xml
@@ -1505,7 +1505,7 @@ inherit autotools</screen></para>
the parameter for specifying the endianess can be computed and
passed in to the configure script:<screen>do_configure() {
# Additional flag based on target endianess (see siteinfo.bbclass)
- ENDIANESS="${@base_conditional('SITEINFO_ENDIANESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
+ ENDIANESS="${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
oenote Determined endianess as: $ENDIANESS
oe_runconf $ENDIANESS
}</screen></para>
@@ -1578,7 +1578,7 @@ inherit autotools</screen></para>
user which endianess it determined was appropriate for the target
device:<screen>do_configure() {
# Additional flag based on target endianess (see siteinfo.bbclass)
- ENDIANESS="${@base_conditional('SITEINFO_ENDIANESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
+ ENDIANESS="${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
oenote Determined endianess as: $ENDIANESS
oe_runconf $ENDIANESS
}</screen></para>
@@ -1691,12 +1691,12 @@ inherit autotools</screen></para>
<para>The following example from the openssl recipe shows the
addition of either <emphasis role="bold">-DL_ENDIAN</emphasis> or
<emphasis role="bold">-DB_ENDIAN</emphasis> depending on the value
- of <emphasis role="bold">SITEINFO_ENDIANESS</emphasis> which is set
+ of <emphasis role="bold">SITEINFO_ENDIANNESS</emphasis> which is set
to le for little endian targets and to be for big endian
targets:<screen>do_compile () {
...
# Additional flag based on target endianess (see siteinfo.bbclass)
- CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"
+ CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"
...</screen></para>
</listitem>
</varlistentry>
@@ -3265,12 +3265,12 @@ do_configure() {
<para>The following example from the openssl recipe shows the
addition of either <emphasis role="bold">-DL_ENDIAN</emphasis> or
<emphasis role="bold">-DB_ENDIAN</emphasis> depending on the value
- of <emphasis role="bold">SITEINFO_ENDIANESS</emphasis> which is set
+ of <emphasis role="bold">SITEINFO_ENDIANNESS</emphasis> which is set
to le for little endian targets and to be for big endian
targets:<screen>do_compile () {
...
# Additional flag based on target endianess (see siteinfo.bbclass)
- CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"
+ CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"
...</screen></para>
</listitem>
</varlistentry>
diff --git a/docs/usermanual/reference/class_siteinfo.xml b/docs/usermanual/reference/class_siteinfo.xml
index 82dbd84f6e..ca42b61480 100644
--- a/docs/usermanual/reference/class_siteinfo.xml
+++ b/docs/usermanual/reference/class_siteinfo.xml
@@ -23,7 +23,7 @@
<variablelist>
<varlistentry>
- <term>SITEINFO_ENDIANESS</term>
+ <term>SITEINFO_ENDIANNESS</term>
<listitem>
<para>Defines the endianess of the target as either
@@ -55,19 +55,19 @@
</varlistentry>
</variablelist>
- <para>A typical use for the <command>SITEINFO_ENDIANESS</command> and
+ <para>A typical use for the <command>SITEINFO_ENDIANNESS</command> and
<command>SITEINFO_BITS</command> variables is to provide configuration
within a recipe based on their values. The following example from the
<emphasis>openssl</emphasis> recipe showw the correct define for the
endiness of the target being passed to openssl via the compiler flags. The
define to add to the flags is set based on the value of the
- <command>SITEINFO_ENDIANESS</command> variable. Note that use of the
+ <command>SITEINFO_ENDIANNESS</command> variable. Note that use of the
<emphasis>base_conditional</emphasis> method (see the <xref
linkend="recipes_advanced_python" /> section) to select a value conditional
on the endianess setting:</para>
<para><screen> # Additional flag based on target endiness (see siteinfo.bbclass)
- CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"</screen></para>
+ CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"</screen></para>
<section>
<title>CONFIG_SITE: The autoconf site files</title>