Skip to content

doc: bitbake-user-manual-ref-variables: clarify BBMASK examples

Quentin Schulz bitbake-devel yocto-docs 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20260211-bbmask-slashes-7ea904bf6347

Versions newest first

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 3 repliesSuperseded
  3. v14 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- switched to a list to explain the multiple matching rules for the
example with multiple BBMASK such that it's easier to digest,
- added missing words here and there,
- reworded the openldap explanation to make it clear it matches
everything under an openldap directory,
- added missing naming scheme for optee file match rule,
- switched absolute paths from /builds/ to /bitbake-builds/poky-master/ such that it matches the layout when using bitbake-setup,
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5doc: bitbake-user-manual-ref-variables: clarify BBMASK directory matchingdoc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst+2 -20 replies
2/5doc: bitbake-user-manual-ref-variables: have directory examples be consistentdoc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst+2 -20 replies
3/5doc: bitbake-user-manual-ref-variables: expand and reorganize BBMASK explanationsdoc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst+82 -90 replies
4/5doc: bitbake-user-manual-ref-variables: update BBMASK example with current meta-tidoc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst+17 -170 replies
5/5doc: bitbake-user-manual-ref-variables: update Python re doc link to HTTPSdoc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst+1 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAntonin Godard
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] doc: bitbake-user-manual-ref-variables: clarify BBMASK examples

Robert reported being confused by the leading slash inconsistencies in our BBMASK examples and wondered if it had any significance. Myself not being less confused, I went reading the code and testing, and it does have significance, so this tries to explain the difference and why you would want a leading slash in most cases.

It also explains that still with only a leading slash there could be involuntary matches, which one should be able to get rid of by using BBFILE_PATTERN from the layer they want to mask recipe or append files from.

While at it, update the meta-ti example such that it matches what's currently in the repo (migrated in kirkstone from a single meta-ti git repo layer to a meta-ti git repo with multiple layers, such as meta-ti-bsp).

This reorganizes examples such that the ones with BBFILE_PATTERN are the ones we provide as first examples as those are the ones users should typically be using such that the masks only apply to a specific layer.

---
Changes in v3:
- switched to a list to explain the multiple matching rules for the
example with multiple BBMASK such that it's easier to digest,
- added missing words here and there,
- reworded the openldap explanation to make it clear it matches
everything under an openldap directory,
- added missing naming scheme for optee file match rule,
- switched absolute paths from /builds/ to /bitbake-builds/poky-master/ such that it matches the layout when using bitbake-setup,
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- added patch 5,
- completely reorganize patch 3 such that the examples with
BBFILE_PATTERN are the ones provided by default,
- Link to v1: https://patch.msgid.link/[email protected]

---
Quentin Schulz (5):
doc: bitbake-user-manual-ref-variables: clarify BBMASK directory matching
doc: bitbake-user-manual-ref-variables: have directory examples be consistent
doc: bitbake-user-manual-ref-variables: expand and reorganize BBMASK explanations
doc: bitbake-user-manual-ref-variables: update BBMASK example with current meta-ti
doc: bitbake-user-manual-ref-variables: update Python re doc link to HTTPS

 .../bitbake-user-manual-ref-variables.rst          | 95 +++++++++++++++++++---
 1 file changed, 84 insertions(+), 11 deletions(-)

---
base-commit: 8b635a400152bb40beaa0d7a47181febb43f5c84
change-id: 20260211-bbmask-slashes-7ea904bf6347

Best regards,

Signature · 1 line
Quentin Schulz <[email protected]>