From aa2ba21a1af0be4e4648f3f4b3a57d4629026bd0 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Tue, 13 Oct 2020 09:45:37 +0200 Subject: bitbake: bitbake-user-manual: Add BBFILES_DYNAMIC - add missing entry for BBFILES_DYNAMIC, ported from yocto-docs - add description for the new inverse mode (Bitbake rev: c27a5cc80852595549ad4156e4bb7f5a05e4cd15) Signed-off-by: Konrad Weihmann Signed-off-by: Richard Purdie (cherry picked from commit 9186ca47ce73b4d1c87eb69163698a04679fb55c) Signed-off-by: Nicolas Dechesne Signed-off-by: Richard Purdie --- .../bitbake-user-manual-ref-variables.xml | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'bitbake') diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml index c4bd1f2584..4c29b2464f 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml @@ -1124,6 +1124,67 @@ + BBFILES_DYNAMIC + + BBFILES_DYNAMIC[doc] = "Activates content depending on presence of identified layers." + + + + Activates content depending on presence of identified layers. + You identify the layers by the collections that the layers + define. + + + + Use the BBFILES_DYNAMIC variable to + avoid .bbappend files whose + corresponding .bb file is in a layer + that attempts to modify other layers through + .bbappend but does not want to + introduce a hard dependency on those other layers. + + + + Additionally you can prefix the rule with "!" to add + .bbappend and .bb files + in case a layer is not present. + Use this avoid hard dependency on those other layers. + + + + Use the following form for + BBFILES_DYNAMIC: + + collection_name:filename_pattern + + The following example identifies two collection names and + two filename patterns: + + BBFILES_DYNAMIC += "\ + clang-layer:${LAYERDIR}/bbappends/meta-clang/*/*/*.bbappend \ + core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \ + " + + When the collection name is prefixed with "!" it will add the file pattern in case + the layer is absent: + + BBFILES_DYNAMIC += "\ + !clang-layer:${LAYERDIR}/backfill/meta-clang/*/*/*.bb \ + " + + + This next example shows an error message that occurs + because invalid entries are found, which cause parsing to + abort: + + ERROR: BBFILES_DYNAMIC entries must be of the form {!}<collection name>:<filename pattern>, not: + /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend + /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend + + + + + BBINCLUDED -- cgit v1.2.3-54-g00ecf