diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-06-02 15:57:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-18 10:30:44 +0100 |
commit | a456afa06c56dd87da74c40d886fbcc4dce20e02 (patch) | |
tree | 6158bc6cdb2ca9caf2efbf2db386b96d8bdf0e55 /documentation/dev-manual | |
parent | 84ee8c653a45ffbda1fd3773f5fbb67d20d1bfc3 (diff) | |
download | poky-a456afa06c56dd87da74c40d886fbcc4dce20e02.tar.gz |
dev-manual: Updates to the "Understanding Recipe Syntax" section.
Paul Eggleton sent me some feedback on this section. I implemented
his suggestions. Changes were minor. One included a cross-link
to the BitBake User Manual.
(From yocto-docs rev: e9b5f252a1368b8c231dd659428a18eacf9757af)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 4a58a6f490..6ae7730f81 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -1400,8 +1400,13 @@ | |||
1400 | <title>Understanding Recipe Syntax</title> | 1400 | <title>Understanding Recipe Syntax</title> |
1401 | 1401 | ||
1402 | <para> | 1402 | <para> |
1403 | The basic items that make up a BitBake recipe file are | 1403 | Understanding recipe file syntax is important for |
1404 | as follows: | 1404 | writing recipes. |
1405 | The following list overviews the basic items that make up a | ||
1406 | BitBake recipe file. | ||
1407 | For more complete BitBake syntax descriptions, see the | ||
1408 | "<ulink url='&YOCTO_DOCS_BB_URL;#bitbake-user-manual-metadata'>Syntax and Operators</ulink>" | ||
1409 | chapter of the BitBake User Manual. | ||
1405 | <itemizedlist> | 1410 | <itemizedlist> |
1406 | <listitem><para><emphasis>Variable Assignments and Manipulations:</emphasis> | 1411 | <listitem><para><emphasis>Variable Assignments and Manipulations:</emphasis> |
1407 | Variable assignments allow a value to be assigned to a | 1412 | Variable assignments allow a value to be assigned to a |
@@ -1519,18 +1524,16 @@ | |||
1519 | <filename>local.conf</filename> file for variables | 1524 | <filename>local.conf</filename> file for variables |
1520 | that are allowed to come through from the external | 1525 | that are allowed to come through from the external |
1521 | environment. | 1526 | environment. |
1522 | Doing so allows you to actually set variables from | 1527 | </para> |
1523 | the external environment that would otherwise be | 1528 | <para>Here is an example where |
1524 | overwritten.</para> | 1529 | <filename>VAR1</filename> is set to "New value" if |
1525 | <para>Here is an example: | 1530 | it is currently empty. |
1531 | However, if <filename>VAR1</filename> has already been | ||
1532 | set, it remains unchanged: | ||
1526 | <literallayout class='monospaced'> | 1533 | <literallayout class='monospaced'> |
1527 | VAR1 ?= "New value" | 1534 | VAR1 ?= "New value" |
1528 | </literallayout> | 1535 | </literallayout> |
1529 | In the previous example, <filename>VAR1</filename> is | 1536 | In this next example, <filename>VAR1</filename> |
1530 | set to "New value" if it is currently empty. | ||
1531 | However, if <filename>VAR1</filename> has already been | ||
1532 | set, it remains unchanged.</para> | ||
1533 | <para>In this next example, <filename>VAR1</filename> | ||
1534 | is left with the value "Original value": | 1537 | is left with the value "Original value": |
1535 | <literallayout class='monospaced'> | 1538 | <literallayout class='monospaced'> |
1536 | VAR1 = "Original value" | 1539 | VAR1 = "Original value" |
@@ -1632,7 +1635,7 @@ | |||
1632 | </literallayout> | 1635 | </literallayout> |
1633 | </para></listitem> | 1636 | </para></listitem> |
1634 | <listitem><para><emphasis>Shell Function Syntax:</emphasis> | 1637 | <listitem><para><emphasis>Shell Function Syntax:</emphasis> |
1635 | Use shell function syntax as if you were writing a shell | 1638 | Write shell functions as if you were writing a shell |
1636 | script when you describe a list of actions to take. | 1639 | script when you describe a list of actions to take. |
1637 | You should ensure that your script works with a generic | 1640 | You should ensure that your script works with a generic |
1638 | <filename>sh</filename> and that it does not require | 1641 | <filename>sh</filename> and that it does not require |