diff options
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 95b8d2741d..55a2995519 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -7499,26 +7499,29 @@ | |||
7499 | </para> | 7499 | </para> |
7500 | 7500 | ||
7501 | <para> | 7501 | <para> |
7502 | If a committed change results in changing the package output, | 7502 | If a committed change results in changing the package |
7503 | then the value of the PR variable needs to be increased | 7503 | output, then the value of the PR variable needs to be |
7504 | (or "bumped") as part of that commit. | 7504 | increased (or "bumped") as part of that commit. |
7505 | For new recipes you should add the <filename>PR</filename> | 7505 | For new recipes you should add the <filename>PR</filename> |
7506 | variable and set its initial value equal to "r0", which is the default. | 7506 | variable and set its initial value equal to "r0", which is |
7507 | Even though the default value is "r0", the practice of adding it to a new recipe makes | 7507 | the default. |
7508 | it harder to forget to bump the variable when you make changes | 7508 | Even though the default value is "r0", the practice of |
7509 | to the recipe in future. | 7509 | adding it to a new recipe makes it harder to forget to bump |
7510 | the variable when you make changes to the recipe in future. | ||
7510 | </para> | 7511 | </para> |
7511 | 7512 | ||
7512 | <para> | 7513 | <para> |
7513 | If you are sharing a common <filename>.inc</filename> file with multiple recipes, | 7514 | If you are sharing a common <filename>.inc</filename> file |
7514 | you can also use the | 7515 | with multiple recipes, you can also use the |
7515 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-INC_PR'>INC_PR</ulink></filename> | 7516 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-INC_PR'>INC_PR</ulink></filename> |
7516 | variable to ensure that | 7517 | variable to ensure that the recipes sharing the |
7517 | the recipes sharing the <filename>.inc</filename> file are rebuilt when the | 7518 | <filename>.inc</filename> file are rebuilt when the |
7518 | <filename>.inc</filename> file itself is changed. | 7519 | <filename>.inc</filename> file itself is changed. |
7519 | The <filename>.inc</filename> file must set <filename>INC_PR</filename> | 7520 | The <filename>.inc</filename> file must set |
7520 | (initially to "r0"), and all recipes referring to it should set <filename>PR</filename> | 7521 | <filename>INC_PR</filename> (initially to "r0"), and all |
7521 | to "$(INC_PR).0" initially, incrementing the last number when the recipe is changed. | 7522 | recipes referring to it should set <filename>PR</filename> |
7523 | to "${INC_PR}.0" initially, incrementing the last number | ||
7524 | when the recipe is changed. | ||
7522 | If the <filename>.inc</filename> file is changed then its | 7525 | If the <filename>.inc</filename> file is changed then its |
7523 | <filename>INC_PR</filename> should be incremented. | 7526 | <filename>INC_PR</filename> should be incremented. |
7524 | </para> | 7527 | </para> |
@@ -7527,14 +7530,14 @@ | |||
7527 | When upgrading the version of a package, assuming the | 7530 | When upgrading the version of a package, assuming the |
7528 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'>PV</ulink></filename> | 7531 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'>PV</ulink></filename> |
7529 | changes, the <filename>PR</filename> variable should be | 7532 | changes, the <filename>PR</filename> variable should be |
7530 | reset to "r0" (or "$(INC_PR).0" if you are using | 7533 | reset to "r0" (or "${INC_PR}.0" if you are using |
7531 | <filename>INC_PR</filename>). | 7534 | <filename>INC_PR</filename>). |
7532 | </para> | 7535 | </para> |
7533 | 7536 | ||
7534 | <para> | 7537 | <para> |
7535 | Usually, version increases occur only to packages. | 7538 | Usually, version increases occur only to packages. |
7536 | However, if for some reason <filename>PV</filename> changes but does not | 7539 | However, if for some reason <filename>PV</filename> changes |
7537 | increase, you can increase the | 7540 | but does not increase, you can increase the |
7538 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PE'>PE</ulink></filename> | 7541 | <filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PE'>PE</ulink></filename> |
7539 | variable (Package Epoch). | 7542 | variable (Package Epoch). |
7540 | The <filename>PE</filename> variable defaults to "0". | 7543 | The <filename>PE</filename> variable defaults to "0". |
@@ -7544,7 +7547,8 @@ | |||
7544 | Version numbering strives to follow the | 7547 | Version numbering strives to follow the |
7545 | <ulink url='http://www.debian.org/doc/debian-policy/ch-controlfields.html'> | 7548 | <ulink url='http://www.debian.org/doc/debian-policy/ch-controlfields.html'> |
7546 | Debian Version Field Policy Guidelines</ulink>. | 7549 | Debian Version Field Policy Guidelines</ulink>. |
7547 | These guidelines define how versions are compared and what "increasing" a version means. | 7550 | These guidelines define how versions are compared and what |
7551 | "increasing" a version means. | ||
7548 | </para> | 7552 | </para> |
7549 | </section> | 7553 | </section> |
7550 | </section> | 7554 | </section> |