Skip to contentSkip to conversation

doc: Document FILE_LAYERNAME

PATCH In review Richard Purdie 2 participants 3 messages Jun 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: Document FILE_LAYERNAME

Document the new variable.

---
 .../bitbake-user-manual-ref-variables.rst                    | 5 +++++
 1 file changed, 5 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +5 -0
index ee5d7ba8d4..337cfa3ed5 100644
@@ -1072,6 +1072,11 @@ overview of their function and contents.
       environment variable. The value is a colon-separated list of
       directories that are searched left-to-right in order.
 
+   :term:`FILE_LAYERNAME`
+      During parsing and task execution, this is set to the name of the
+      layer containing the recipe file. Code can use this to identify which
+      layer a recipe is from.
+
    :term:`GITDIR`
       The directory in which a local copy of a Git repository is stored
       when it is cloned.
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Richard

Quoted 13 lines · Richard Purdie

Document the new variable.

---
  .../bitbake-user-manual-ref-variables.rst                    | 5 +++++
  1 file changed, 5 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -0
index ee5d7ba8d4..337cfa3ed5 100644
@@ -1072,6 +1072,11 @@ overview of their function and contents.
        environment variable. The value is a colon-separated list of

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

Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +5 -0
        directories that are searched left-to-right in order.
 
+   :term:`FILE_LAYERNAME`
+      During parsing and task execution, this is set to the name of the
+      layer containing the recipe file. Code can use this to identify which
+      layer a recipe is from.
+
     :term:`GITDIR`
        The directory in which a local copy of a Git repository is stored
        when it is cloned.

If you can merge this commit quickly, I'll be able to include the Yocto Manual one you submitted, referring to it. Thanks!
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 30 lines · Michael Opdenacker

Hi Richard

Quoted 13 lines · Richard Purdie

Document the new variable.

---
  .../bitbake-user-manual-ref-variables.rst                    | 5 +++++
  1 file changed, 5 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -0
index ee5d7ba8d4..337cfa3ed5 100644
@@ -1072,6 +1072,11 @@ overview of their function and contents.
        environment variable. The value is a colon-separated list of

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

Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +5 -0
        directories that are searched left-to-right in order.
 
+   :term:`FILE_LAYERNAME`
+      During parsing and task execution, this is set to the name of the
+      layer containing the recipe file. Code can use this to identify which
+      layer a recipe is from.
+
     :term:`GITDIR`
        The directory in which a local copy of a Git repository is stored
        when it is cloned.
Quoted 2 lines

If you can merge this commit quickly, I'll be able to include the Yocto Manual one you submitted, referring to it.

Merged!

We may need to expand some of the documentation on this but I wanted to at least have the basics.

Cheers,

Richard