summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2011-08-31 12:28:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 23:38:51 +0100
commitb214cdc7e8105c59c806042d5d994216de409025 (patch)
tree6606b0a1adb595e1fd808f881f24a74fc02df2ab /documentation
parent4884e38a6c96bd7176911e4d5fcf7c10dd4c5a6c (diff)
downloadast2050-yocto-poky-b214cdc7e8105c59c806042d5d994216de409025.zip
ast2050-yocto-poky-b214cdc7e8105c59c806042d5d994216de409025.tar.gz
documentation/bsp-guide/bsp.xml: Edits for Crownbay example in kernel recipes
Because the Crownbay uses both EMGD and non-EMGD statments in the linux-yocto_3.0.bbappend file I had to do some explaining. It turns out you don't really need to just delete or comment out the non-applicable statements. I also adjusted some wording around the tuning file example. This file I assumed was in the conf directory of the meta-crownbay directory. It is really in the meta/conf/machine/include directory. (From yocto-docs rev: 3f82656f7ffb392333f8cf59abf1414af5da512b) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/bsp-guide/bsp.xml44
1 files changed, 19 insertions, 25 deletions
diff --git a/documentation/bsp-guide/bsp.xml b/documentation/bsp-guide/bsp.xml
index 0dcb473..bd2ef8b 100644
--- a/documentation/bsp-guide/bsp.xml
+++ b/documentation/bsp-guide/bsp.xml
@@ -320,29 +320,23 @@
</para>
<para>
- This directory could also contain shared hardware "tuning" definitions that are commonly used to
- pass specific optimization flags to the compiler.
- An example is <filename>tune-atom.inc</filename>:
+ This <filename>crownbay.conf</filename> file could also include
+ a hardware "tuning" file that is commonly used to
+ define the the package architecture and specify
+ optimization flags, which are carefully chosen to give best
+ performance on a given processor.
</para>
+
<para>
+ Tuning files are found in the <filename>meta/conf/machine/include</filename>
+ directory.
+ To use them, you simply include them in the machine configuration file.
+ For example, the Crown Bay BSP <filename>crownbay.conf</filename> has the
+ following statement:
<literallayout class='monospaced'>
- BASE_PACKAGE_ARCH = "core2"
- TARGET_CC_ARCH = "-m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse"
+ include conf/machine/include/tune-atom.inc
</literallayout>
</para>
- <para>
- This example defines a new package architecture called "core2" and uses the
- specified optimization flags, which are carefully chosen to give best
- performance on atom processors.
- </para>
- <para>
- The tune file would be included by the machine definition and can be
- contained in the BSP or referenced from one of the standard core set of
- files included with the Yocto Project.
- </para>
- <para>
- Both the base package architecture file and the tune file are optional for a BSP layer.
- </para>
</section>
<section id='bsp-filelayout-misc-recipes'>
@@ -457,12 +451,12 @@
SRCREV_machine_pn-linux-yocto_crownbay-noemgd ?= "6b4b9acde5fb0ff66ae58fa98274bfe631501499"
SRCREV_meta_pn-linux-yocto_crownbay-noemgd ?= "5b535279e61197cb194bb2dfceb8b7a04128387c"
</literallayout>
- This append file contains statements used to support the Crown Bay BSP that both
- supports and does not support the Intel EMGD.
- If, for example, you were going to build the BSP that did not support Intel EMGD,
- you would simply comment out or delete the statements that support building
- Crown Bay with Intel EMGD support.
- So, the <filename>linux-yocto_3.0.bbappend</filename> could be as follows:
+ This append file contains statements used to support the Crown Bay BSP for both
+ Intel EMGD and non-EMGD.
+ The build process, in this case, recognizes and uses only the statements that
+ apply to the defined machine name - <filename>crownbay</filename> in this case.
+ So, the applicable statements in the <filename>linux-yocto_3.0.bbappend</filename>
+ file are follows:
<literallayout class='monospaced'>
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
@@ -473,7 +467,7 @@
SRCREV_machine_pn-linux-yocto_crownbay ?= "6b4b9acde5fb0ff66ae58fa98274bfe631501499"
SRCREV_meta_pn-linux-yocto_crownbay ?= "5b535279e61197cb194bb2dfceb8b7a04128387c"
</literallayout>
- The append file defines "crownbay" as the compatible machine,
+ The append file defines <filename>crownbay</filename> as the compatible machine,
defines the <filename>KMACHINE</filename>, points to some configuration fragments
to use by setting the <filename>KERNEL_FEATURES</filename> variable, and then points
to the specific commits in the Yocto Project files Git repository and the
OpenPOWER on IntegriCloud