]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bbconfigbuild/configfragments.py: set BBPATH in standalone datastore
authorAlexander Kanavin <alex@linutronix.de>
Wed, 8 Jan 2025 11:25:00 +0000 (12:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jan 2025 16:59:20 +0000 (16:59 +0000)
Otherwise fragments with 'require' statements will not parse,
as the parser will not be able to find files referred to by
those statements.

Add such a statement to the test fragment so that the scenario
is tested.

[YOCTO #15707]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/conf/fragments/test-fragment.conf
meta/lib/bbconfigbuild/configfragments.py

index 4c1d24094533568a33d19c9b38f0893b07245d80..82dd3537676d4175919dc820039f4ed6518fba8b 100644 (file)
@@ -1,3 +1,5 @@
 BB_CONF_FRAGMENT_SUMMARY = "This is a configuration fragment intended for testing in oe-selftest context"
 BB_CONF_FRAGMENT_DESCRIPTION = "It defines a variable that can be checked inside the test."
+
 SELFTEST_FRAGMENT_VARIABLE = "somevalue"
+require conf/multilib.conf
index a4896cc7343a0c4359f1f228353474c3f2114477..c1dddc3e4cb199d8246a828152775cbb085ef667 100644 (file)
@@ -23,6 +23,7 @@ def plugin_init(plugins):
 class ConfigFragmentsPlugin(LayerPlugin):
     def get_fragment_info(self, path, name):
         d = bb.data.init()
+        d.setVar('BBPATH', self.tinfoil.config_data.getVar('BBPATH'))
         bb.parse.handle(path, d, True)
         summary = d.getVar('BB_CONF_FRAGMENT_SUMMARY')
         description = d.getVar('BB_CONF_FRAGMENT_DESCRIPTION')