diff --git a/meta-selftest/conf/fragments/test-fragment.conf b/meta-selftest/conf/fragments/test-fragment.conf index 4c1d240945..82dd353767 100644 --- a/meta-selftest/conf/fragments/test-fragment.conf +++ b/meta-selftest/conf/fragments/test-fragment.conf @@ -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 diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index a4896cc734..c1dddc3e4c 100644 --- a/meta/lib/bbconfigbuild/configfragments.py +++ b/meta/lib/bbconfigbuild/configfragments.py @@ -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')