summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-01-08 12:25:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-09 16:59:23 +0000
commit70a650c26a5f310d795284ac0c33d884d3603dfd (patch)
treeacfa3451ba5357986a2b153965bf88282ddef27c /meta/lib
parent2d267c418fc9f95206f9f0560b905efcc7b51800 (diff)
downloadpoky-70a650c26a5f310d795284ac0c33d884d3603dfd.tar.gz
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 <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/bbconfigbuild/configfragments.py1
1 files changed, 1 insertions, 0 deletions
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):
23class ConfigFragmentsPlugin(LayerPlugin): 23class ConfigFragmentsPlugin(LayerPlugin):
24 def get_fragment_info(self, path, name): 24 def get_fragment_info(self, path, name):
25 d = bb.data.init() 25 d = bb.data.init()
26 d.setVar('BBPATH', self.tinfoil.config_data.getVar('BBPATH'))
26 bb.parse.handle(path, d, True) 27 bb.parse.handle(path, d, True)
27 summary = d.getVar('BB_CONF_FRAGMENT_SUMMARY') 28 summary = d.getVar('BB_CONF_FRAGMENT_SUMMARY')
28 description = d.getVar('BB_CONF_FRAGMENT_DESCRIPTION') 29 description = d.getVar('BB_CONF_FRAGMENT_DESCRIPTION')