clarify how bbappend files work with an unversioned BitBake recipe
PATCH 1/1 clarify how bbappend files work with an unversioned BitBake recipe
Add a short note to the BitBake intro manual chapter to clarify that, given an unversioned .bb recipe file, the matching .bbappend must also be unversioned.
---
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +6 -0
@@ -272,6 +272,12 @@ append name would not match. However, if you named the append file In the most general case, you could name the append file something as simple as ``busybox_%.bbappend`` to be entirely version independent. +.. note:: + + In the infrequent case of an unversioned BitBake recipe (such as + ``linux-yocto-dev.bb``), the corresponding append file must be similarly + unversioned; that is, ``linux-yocto-dev.bbappend``. + Obtaining BitBake =================
Hi Robert,
Please Cc the bitbake ML as well. The Yocto docs community reviews the patches but it's up to the BitBake maintainer(s) to take the patch.
C.f. https://git.openembedded.org/bitbake/tree/README#n29
Quoted 14 lines · Robert P. J. Day via lists.yoctoproject.org
Add a short note to the BitBake intro manual chapter to clarify that, given an unversioned .bb recipe file, the matching .bbappend must also be unversioned.
Signed-off-by Robert P. J. Day <[email protected]>---
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +0
-0
doc/bitbake-user-manual/bitbake-user-manual-intro.rst append name would not match. However, if you named the append file · line 280
Quoted 9 lines
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +6
-0@@ -272,6 +272,12 @@ append name would not match. However, if you named the append file In the most general case, you could name the append file something as simple as ``busybox_%.bbappend`` to be entirely version independent. +.. note:: + + In the infrequent case of an unversioned BitBake recipe (such as + ``linux-yocto-dev.bb``), the corresponding append file must be similarly + unversioned; that is, ``linux-yocto-dev.bbappend``. +
I wouldn't make this a note. There are a bunch of examples, all of which aren't in a note, so we should do the same here.
I could even see this being mentioned in an even sneakier way, e.g.:
"""
BitBake expects every append file to have a corresponding recipe file (e.g. ``formfactor.bb`` and ``formfactor.bbappend``). """
What follows in this paragraph is actually pretty explanatory I believe? "The append file and corresponding recipe file must use the same root filename. The filenames can only differ in the file type".
Though we contradict ourselves a few paragraphs below where we say we can use % to do some less strict matching :)
Cheers,
Quentin
Quoted 15 lines · Robert P. J. Day
Add a short note to the BitBake intro manual chapter to clarify that, given an unversioned .bb recipe file, the matching .bbappend must also be unversioned.
Signed-off-by Robert P. J. Day <[email protected]>---
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +0
-0@@ -272,6 +272,12 @@ append name would not match. However, if you named the append file In the most general case, you could name the append file something as
doc/bitbake-user-manual/bitbake-user-manual-intro.rst append name would not match. However, if you named the append file · line 282
Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +6
-0simple as ``busybox_%.bbappend`` to be entirely version independent. +.. note:: + + In the infrequent case of an unversioned BitBake recipe (such as + ``linux-yocto-dev.bb``), the corresponding append file must be similarly + unversioned; that is, ``linux-yocto-dev.bbappend``. + Obtaining BitBake =================
This needs to be sent to the [email protected] mailing list, with this list in copy.
Thanks,
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com