diff options
Diffstat (limited to 'documentation/dev-manual/layers.rst')
-rw-r--r-- | documentation/dev-manual/layers.rst | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst index 89c8466933..c649e2bd60 100644 --- a/documentation/dev-manual/layers.rst +++ b/documentation/dev-manual/layers.rst | |||
@@ -470,11 +470,23 @@ corresponding recipe file. For example, the append file | |||
470 | means the original recipe and append filenames are version | 470 | means the original recipe and append filenames are version |
471 | number-specific. If the corresponding recipe is renamed to update to a | 471 | number-specific. If the corresponding recipe is renamed to update to a |
472 | newer version, you must also rename and possibly update the | 472 | newer version, you must also rename and possibly update the |
473 | corresponding ``.bbappend`` as well. During the build process, BitBake | 473 | corresponding ``.bbappend`` as well. |
474 | displays an error on starting if it detects a ``.bbappend`` file that | 474 | |
475 | does not have a corresponding recipe with a matching name. See the | 475 | During the build process, BitBake displays an error on startup if it detects a |
476 | :term:`BB_DANGLINGAPPENDS_WARNONLY` | 476 | ``.bbappend`` file that does not have a corresponding recipe with a matching |
477 | variable for information on how to handle this error. | 477 | name. To handle these errors, the best practice is to rename the ``.bbappend`` |
478 | to match the original recipe version. This also gives you the opportunity to see | ||
479 | if the ``.bbappend`` is still relevant for the new version of the recipe. | ||
480 | |||
481 | Another method it to use the character ``%`` in the ``.bbappend`` filename. For | ||
482 | example, to append information to every ``6.*`` minor versions of the recipe | ||
483 | ``someapp``, the ``someapp_6.%.bbappend`` file can be created. This way, an | ||
484 | error will only be triggered if the ``someapp`` recipe has a major version | ||
485 | update. | ||
486 | |||
487 | Finally, another method to deal with these errors is to use the variable | ||
488 | :term:`BBMASK`, especially in cases where modifying the ``.bbappend`` is not | ||
489 | possible. | ||
478 | 490 | ||
479 | Overlaying a File Using Your Layer | 491 | Overlaying a File Using Your Layer |
480 | ---------------------------------- | 492 | ---------------------------------- |