]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts: add b4-wrapper for poky
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 5 Feb 2025 16:16:01 +0000 (17:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Feb 2025 10:36:27 +0000 (10:36 +0000)
commita1d629a0823cf724bda607ef8d88ee4f722c3a08
tree32620f9ad35658b6ccec428b4263c89571516aa9
parentdb5b855f175820918d6643439ccbfe3a70119279
scripts: add b4-wrapper for poky

poky is a combo-layer containing BitBake, OpenEmbedded-Core and Yocto
Documentation source code into one big repo. It is not uncommon to have
people develop patches for either of those projects from a poky git
repo.
However, it is unlikely those patches are to be sent to the poky mailing
list as very few files contained in the poky git repo actually are
poky-specific. So we need a way to identify to which mailing list a
patch is destined to be sent.
Additionally, because the source code in openembedded-core is
merged/imported at the root of the git repo of poky, its .b4-config
introduced in the previous commit will be used if not overridden (which
will be done in a separate commit specific to the poky git repo). We
need to provide a different .b4-config in poky.

Therefore, this wrapper is used to identify automatically which mailing
list a patch series needs to be sent to (via b4 prep --auto-to-cc) and
does some additional checks (via b4 prep --check) such as making sure a
patch doesn't modify two different projects at the same time or that
multiple projects are modified by different patches in the same patch
series.

This wrapper script is meant to be used by poky's .b4-config. Ideally
the b4 prep --check part could be offloaded to `patchtest` once it
supports running on source different from OE-Core.

Note that b4 makes sure that an address doesn't appear twice in the
recipient list. There's also no priority in the type of recipient list,
so if the address appears first in Cc and then in To, only the Cc will
be added. The opposite is true as well.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/b4-wrapper-poky.py [new file with mode: 0755]