diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-09-26 11:46:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-01 10:52:54 +0100 |
commit | fb086f85b7959e2bac3466b26881e8eab03f2858 (patch) | |
tree | a99fdd5184f04c001c4d58f0b1a22a8f3ebcb574 /meta-selftest | |
parent | 1c4fae57327773a8058587b28c718bdf913a3635 (diff) | |
download | poky-fb086f85b7959e2bac3466b26881e8eab03f2858.tar.gz |
oeqa/bblayers.py: add tests for adding new built-in fragments
Add discussed in [1], our best option for customizing built-in fragments
is to pass them from a layer configuration. In short, the reason is that
our statement must be parsed before the addfragments call is parsed.We
also have to use the :append override as using += would override the
original definition of OE_FRAGMENTS_BUILTIN (since it uses a ?=
assignment).
Provide a test case for customizing built-in fragments with
meta-selftest.
[1]: https://lore.kernel.org/yocto-docs/20250925-fragments-v1-0-c9f747361fb2@bootlin.com/T/#m9f7c9f110c084eba17e0f64d8b2ac7a88af3f38e
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
(From OE-Core rev: 38cbf4c0ce5173dc3080fa0fbb3ec3e7926c8137)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-rw-r--r-- | meta-selftest/conf/layer.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-selftest/conf/layer.conf b/meta-selftest/conf/layer.conf index ecc45ded8c..de7d6340ed 100644 --- a/meta-selftest/conf/layer.conf +++ b/meta-selftest/conf/layer.conf | |||
@@ -12,3 +12,5 @@ BBFILE_PRIORITY_selftest = "5" | |||
12 | addpylib ${LAYERDIR}/lib oeqa | 12 | addpylib ${LAYERDIR}/lib oeqa |
13 | 13 | ||
14 | LAYERSERIES_COMPAT_selftest = "whinlatter" | 14 | LAYERSERIES_COMPAT_selftest = "whinlatter" |
15 | |||
16 | OE_FRAGMENTS_BUILTIN:append = " selftest-fragment:SELFTEST_BUILTIN_FRAGMENT_VARIABLE" | ||