summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2012-03-12 14:25:58 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-23 14:24:44 +0000
commitf202838fdd1872c2a74f07c5a5d9a664780972db (patch)
treeff7e7d2199de19685bc63678af152a3c4220adb1 /documentation
parent9bdc18a82017d549217a813a6da5d1267fb737e3 (diff)
downloadpoky-f202838fdd1872c2a74f07c5a5d9a664780972db.tar.gz
documentation/dev-manual/dev-manual-common-tasks.xml: Review edits
Implemented Paul Eggleton's review comments for the "Understanding and Using Layers" section. (From yocto-docs rev: ec376754f63122a1bd31d47e153ee3e872aac0b5) 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/dev-manual/dev-manual-common-tasks.xml63
1 files changed, 46 insertions, 17 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 74375c89bf..729e945153 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -119,7 +119,7 @@
119 from <filename>BBFILES</filename> into a particular layer. 119 from <filename>BBFILES</filename> into a particular layer.
120 In this case, immediate expansion of 120 In this case, immediate expansion of
121 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename> 121 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-LAYERDIR'>LAYERDIR</ulink></filename>
122 sets <filename>BBFILES_PATTERN</filename> to the layer's path. 122 sets <filename>BBFILE_PATTERN</filename> to the layer's path.
123 The 123 The
124 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename> 124 <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-BBFILE_PRIORITY'>BBFILE_PRIORITY</ulink></filename>
125 variable then assigns a priority to the layer. 125 variable then assigns a priority to the layer.
@@ -131,9 +131,10 @@
131 The <filename>LAYERDIR</filename> variable expands to the directory of the current layer and 131 The <filename>LAYERDIR</filename> variable expands to the directory of the current layer and
132 requires the immediate expansion operator so that BitBake does not wait to expand the variable 132 requires the immediate expansion operator so that BitBake does not wait to expand the variable
133 when it's parsing a different directory.</para> 133 when it's parsing a different directory.</para>
134 <para>BitBake locates included <filename>.bbclass</filename>, configuration, 134 <para>Through the use of the <filename>BBPATH</filename> environment variable,
135 and other files using the <filename>include</filename> and <filename>require</filename> 135 BitBake locates <filename>.bbclass</filename> files, configuration
136 statements by way of the <filename>BBPATH</filename> environment variable. 136 files, and files that are included with <filename>include</filename>
137 and <filename>require</filename> statements.
137 For these cases, BitBake uses the first file with the matching name found in 138 For these cases, BitBake uses the first file with the matching name found in
138 <filename>BBPATH</filename>. 139 <filename>BBPATH</filename>.
139 This is similar to the way the <filename>PATH</filename> variable is used for binaries. 140 This is similar to the way the <filename>PATH</filename> variable is used for binaries.
@@ -365,6 +366,21 @@
365 </literallayout> 366 </literallayout>
366 The following list describes the available commands: 367 The following list describes the available commands:
367 <itemizedlist> 368 <itemizedlist>
369 <listitem><para><filename><emphasis>help:</emphasis></filename>
370 Displays general help or help on a specified command.</para></listitem>
371 <listitem><para><filename><emphasis>show-layers:</emphasis></filename>
372 Show the current configured layers.</para></listitem>
373 <listitem><para><filename><emphasis>show-recipes:</emphasis></filename>
374 Lists available recipes and the layers that provide them.
375 </para></listitem>
376 <listitem><para><filename><emphasis>show-overlayed:</emphasis></filename>
377 Lists overlayed recipes.
378 A recipe is overlayed when a recipe with the same name exists in another layer
379 that has a higher layer priority.
380 </para></listitem>
381 <listitem><para><filename><emphasis>show-appends:</emphasis></filename>
382 Lists <filename>.bbappend</filename> files and the recipe files to which
383 they apply.</para></listitem>
368 <listitem><para><filename><emphasis>flatten:</emphasis></filename> 384 <listitem><para><filename><emphasis>flatten:</emphasis></filename>
369 Flattens the layer configuration into a separate output directory. 385 Flattens the layer configuration into a separate output directory.
370 Flattening your layer configuration builds a "flattened" directory that contains 386 Flattening your layer configuration builds a "flattened" directory that contains
@@ -380,22 +396,35 @@
380 </para></listitem> 396 </para></listitem>
381 <listitem><para>Overridden and appended items from <filename>.bbappend</filename> 397 <listitem><para>Overridden and appended items from <filename>.bbappend</filename>
382 files need to be cleaned up. 398 files need to be cleaned up.
383 For example, the contents of each <filename>.bbappend</filename> end up in the 399 The contents of each <filename>.bbappend</filename> end up in the
384 flattened recipe. 400 flattened recipe.
385 However, if there are appended or changed variable values, you need to tidy 401 However, if there are appended or changed variable values, you need to tidy
386 these up yourself.</para></listitem> 402 these up yourself.
403 Consider the following example.
404 Here, the <filename>bitbake-layers</filename> command adds the line
405 <filename>#### bbappended ...</filename> so that you know where the following
406 lines originate:
407 <literallayout class='monospaced'>
408 ...
409 DESCRIPTION = "A useful utility"
410 ...
411 EXTRA_OECONF = "--enable-something"
412 ...
413
414 #### bbappended from meta-anotherlayer ####
415
416 DESCRIPTION = "Customized utility"
417 EXTRA_OECONF += "--enable-somethingelse"
418 </literallayout>
419 Ideally, you would tidy up these utilities as follows:
420 <literallayout class='monospaced'>
421 ...
422 DESCRIPTION = "Customized utility"
423 ...
424 EXTRA_OECONF = "--enable-something --enable-somethingelse"
425 ...
426 </literallayout></para></listitem>
387 </itemizedlist></para></listitem> 427 </itemizedlist></para></listitem>
388 <listitem><para><filename><emphasis>help:</emphasis></filename>
389 Displays general help or help on a specified command.</para></listitem>
390 <listitem><para><filename><emphasis>show_appends:</emphasis></filename>
391 Lists <filename>.bbappend</filename> files and the recipe files to which
392 they apply.</para></listitem>
393 <listitem><para><filename><emphasis>show_layers:</emphasis></filename>
394 Show the current configured layers.</para></listitem>
395 <listitem><para><filename><emphasis>show_overlayed:</emphasis></filename>
396 Lists overlayed recipes.
397 Overlayed recipes appear in another layer that has a higher layer priority.
398 </para></listitem>
399 </itemizedlist> 428 </itemizedlist>
400 </para> 429 </para>
401 </section> 430 </section>