diff options
author | Alexander Kanavin <alex@linutronix.de> | 2024-12-11 14:46:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-13 11:11:18 +0000 |
commit | 22f046d67c02823f2df2b26cb3c463f567eae3fb (patch) | |
tree | 2bc7fc6e26cea6a251628fa8c0c19bccb92f551e /meta-selftest | |
parent | aadff6930b293da8d5ce312c62b9d63335cde424 (diff) | |
download | poky-22f046d67c02823f2df2b26cb3c463f567eae3fb.tar.gz |
bitbake-config-build: add a plugin for config fragments
This allows fine-tuning local configurations with pre-frabricated
configuration snippets in a structured, controlled way. It's also
an important building block for bitbake-setup.
The tool requires that each fragment contains a one-line summary, and one or more
lines of description, as BB_CONF_FRAGMENT_SUMMARY style metadata.
There are three (and a half) operations (list/enable/disable/disable all), and here's the 'list' output:
alex@Zen2:/srv/storage/alex/yocto/build-64$ bitbake-config-build list-fragments
NOTE: Starting bitbake server...
Available fragments in selftest layer located in /srv/work/alex/poky/meta-selftest:
Enabled fragments:
selftest/test-fragment This is a configuration fragment intended for testing in oe-selftest context
Unused fragments:
selftest/more-fragments-here/test-another-fragment This is a second configuration fragment intended for testing in oe-selftest context
(From OE-Core rev: fdb611e13bd7aa00360d3a68e4818ef5f05c8944)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-rw-r--r-- | meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf | 3 | ||||
-rw-r--r-- | meta-selftest/conf/fragments/test-fragment.conf | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf b/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf new file mode 100644 index 0000000000..3bf0459047 --- /dev/null +++ b/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf | |||
@@ -0,0 +1,3 @@ | |||
1 | BB_CONF_FRAGMENT_SUMMARY = "This is a second configuration fragment intended for testing in oe-selftest context" | ||
2 | BB_CONF_FRAGMENT_DESCRIPTION = "It defines another variable that can be checked inside the test." | ||
3 | SELFTEST_FRAGMENT_ANOTHER_VARIABLE = "someothervalue" | ||
diff --git a/meta-selftest/conf/fragments/test-fragment.conf b/meta-selftest/conf/fragments/test-fragment.conf new file mode 100644 index 0000000000..4c1d240945 --- /dev/null +++ b/meta-selftest/conf/fragments/test-fragment.conf | |||
@@ -0,0 +1,3 @@ | |||
1 | BB_CONF_FRAGMENT_SUMMARY = "This is a configuration fragment intended for testing in oe-selftest context" | ||
2 | BB_CONF_FRAGMENT_DESCRIPTION = "It defines a variable that can be checked inside the test." | ||
3 | SELFTEST_FRAGMENT_VARIABLE = "somevalue" | ||