Skip to contentSkip to conversation

Clarify that _ and not : is used for suffixing the variable name.

PATCH In review Simon A. Eugster 2 participants 3 messages Sep 20, 2024

lore
Share & tools
lore
#0 lore raw

cover Clarify that _ and not : is used for suffixing the variable name.

Simon A. Eugster (1):
bitbake: doc: suffix for BBFILE_PRIORITY

 .../bitbake-user-manual-ref-variables.rst                   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 bitbake: doc: suffix for BBFILE_PRIORITY

---
 .../bitbake-user-manual-ref-variables.rst                   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +5 -1
index 899e584f91..c203531f51 100644
@@ -766,6 +766,10 @@ overview of their function and contents.
    :term:`BBFILE_PRIORITY`
       Assigns the priority for recipe files in each layer.
 
+      This variable is used in the ``conf/layer.conf`` file and must be
+      suffixed with a `_` followed by the name of the specific layer (e.g.
+      ``BBFILE_PRIORITY_emenlow``). Colon as separator is not supported.
+
       This variable is useful in situations where the same recipe appears
       in more than one layer. Setting this variable allows you to
       prioritize a layer against other layers that contain the same recipe
@@ -780,7 +784,7 @@ overview of their function and contents.
       higher precedence. For example, the value 6 has a higher precedence
       than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
       is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
-      for more information. The default priority, if unspecified for a
+      for more information). The default priority, if unspecified for a
       layer with no dependencies, is the lowest defined priority + 1 (or 1
       if no priorities are defined).
 
Signature · 1 line
2.43.0
#2 lore raw

Re: [docs] [PATCH 1/1] bitbake: doc: suffix for BBFILE_PRIORITY

Hi Simon,

The patch should have been sent to bitbake-devel mailing list as well since it'll be the responsibility of those maintainers and not yocto-docs' maintainers to merge it. Can you please resend with both mailing lists so that the people in charge receive it and can review it?

c.f. https://git.openembedded.org/bitbake/tree/README#n29

Quoted 23 lines · Simon A. Eugster via lists.yoctoproject.org

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

---
  .../bitbake-user-manual-ref-variables.rst                   | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +4 -0
index 899e584f91..c203531f51 100644
@@ -766,6 +766,10 @@ overview of their function and contents.
     :term:`BBFILE_PRIORITY`
        Assigns the priority for recipe files in each layer.
 
+      This variable is used in the ``conf/layer.conf`` file and must be
+      suffixed with a `_` followed by the name of the specific layer (e.g.
+      ``BBFILE_PRIORITY_emenlow``). Colon as separator is not supported.
+
        This variable is useful in situations where the same recipe appears
        in more than one layer. Setting this variable allows you to
        prioritize a layer against other layers that contain the same recipe

bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst overview of their function and contents. · line 790

Quoted 8 lines
bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +1 -1
@@ -780,7 +784,7 @@ overview of their function and contents.
        higher precedence. For example, the value 6 has a higher precedence
        than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
        is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
-      for more information. The default priority, if unspecified for a
+      for more information). The default priority, if unspecified for a
        layer with no dependencies, is the lowest defined priority + 1 (or 1
        if no priorities are defined).
 

This seems reasonable to me, I'm wondering if we should explain how to find out the name of the layer (e.g. it's often not the name of the layer on the filesystem, but I think it's the one that's added to BBFILE_COLLECTIONS in conf/layer.conf of said layer?

Additionally, since this BBFILE_PRIORITY file is documented in both BitBake and YP docs, would you be so nice and send a patch for YP docs (https://git.yoctoproject.org/yocto-docs/) to remove the content of the variable in the glossary and just point at the BitBake docs instead? See https://docs.yoctoproject.org/ref-manual/variables.html#term-BB_BASEHASH_IGNORE_VARS and https://git.yoctoproject.org/yocto-docs/tree/documentation/ref-manual/variables.rst#n350 for an example. This would mean we only would have one place to maintain instead of two :)

Thanks!
Quentin