From 70a650c26a5f310d795284ac0c33d884d3603dfd Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 8 Jan 2025 12:25:00 +0100 Subject: bbconfigbuild/configfragments.py: set BBPATH in standalone datastore 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] (From OE-Core rev: d88e63d1a7867b3a4ebfc57d472900136b5361d8) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/lib/bbconfigbuild/configfragments.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/lib/bbconfigbuild/configfragments.py') 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') -- cgit v1.2.3-54-g00ecf