Skip to contentSkip to conversation

migration-guide: Add notes on FILE_LAYERNAME

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 migration-guide: Add notes on FILE_LAYERNAME

---
 documentation/migration-guides/migration-4.3.rst     | 10 ++++++++++
 documentation/migration-guides/release-notes-4.3.rst | 12 ++++++++++++
 2 files changed, 22 insertions(+)
documentation/migration-guides/migration-4.3.rst +10 -0
index c2e5699cc..e72967bf3 100644
@@ -26,6 +26,16 @@ no longer the default supported configuration. This setting does not affect whic
 kernel versions SDKs will run against and does not affect which versions of the kernel
 can be used to run builds.
 
+Layername override implications
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Code can now know which layer a recipe is coming from through the newly added
+:term:`FILE_LAYERNAME` variable and the layer-<layername> override. This is being used
+for enabling QA checks on a per layer basis. For existing code this has the
+side effect that the QA checks will apply to things being bbappended to recipes
+from other layers. Those other layers would need to have patch upstream status
+entries for patches being bbappended for example.
+
 .. _migration-4.3-supported-distributions:
 
 Supported distributions
documentation/migration-guides/release-notes-4.3.rst +12 -0
index d782a5917..24295f633 100644
@@ -17,6 +17,18 @@ New Features / Enhancements in 4.3
 
    -  :term:`KERNEL_DTBVENDORED`: whether to keep vendor subdirectories.
 
+   -  :term:`FILE_LAYERNAME`: bitbake now sets this to the name of the layer containing the recipe
+
+- Layername functionality available through overrides
+
+  Code can now know which layer a recipe is coming from through the newly added FILE_LAYERNAME
+  variable. This has been added as an override of the form layer-<layername>. In particular,
+  this means QA checks can now be layer specific, for example::
+
+    ERROR_QA:layer-core:append = " patch-status"
+
+  which will enable the patch-status QA check for the core layer.
+
 -  Architecture-specific enhancements:
 
 -  Kernel-related enhancements:
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 migration-guide: Add notes on systemd/usrmerge changes

---
 documentation/migration-guides/migration-4.3.rst | 7 +++++++
 1 file changed, 7 insertions(+)
documentation/migration-guides/migration-4.3.rst +7 -0
index e72967bf3..74cc6354c 100644
@@ -55,6 +55,13 @@ Go language changes
 -  Support for the Glide package manager has been removed, as ``go mod``
    has become the standard.
 
+Systemd changes
+~~~~~~~~~~~~~~~
+
+Upstream systemd is now more strict on filesystem layout and the usrmerge
+feature is therefore required alongside systemd. The Poky test configurations
+have been updated accordingly for systemd.
+
 .. _migration-4.3-recipe-changes:
 
 Recipe changes
Signature · 1 line
2.39.2
#2 lore raw

Re: [docs] [PATCH 2/2] migration-guide: Add notes on systemd/usrmerge changes

Hi Richard,

Quoted 10 lines · Richard Purdie
---
  documentation/migration-guides/migration-4.3.rst | 7 +++++++
  1 file changed, 7 insertions(+)
documentation/migration-guides/migration-4.3.rst +0 -0
index e72967bf3..74cc6354c 100644

documentation/migration-guides/migration-4.3.rst Go language changes · line 63

Quoted 9 lines
documentation/migration-guides/migration-4.3.rst +6 -0
@@ -55,6 +55,13 @@ Go language changes
  -  Support for the Glide package manager has been removed, as ``go mod``
     has become the standard.
 
+Systemd changes
+~~~~~~~~~~~~~~~
+
+Upstream systemd is now more strict on filesystem layout and the usrmerge
+feature is therefore required alongside systemd. The Poky test configurations
+have been updated accordingly for systemd.

Thanks for the two patches!
After a few minor formatting edits, I merged them into master-next. Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com