From: Richard Purdie Date: Thu, 8 Dec 2022 11:46:07 +0000 (+0000) Subject: scripts/checklayer: Update to match bitbake changes X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef7677dc90fac089f8b9f6da301cca022ed7284c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/checklayer: Update to match bitbake changes Bitbake additions for the addpylib API mean we need to update the parsing function call to be clear we're parsing in configuration context. Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index aa946f3036c..78c74ca6ec3 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py @@ -43,7 +43,7 @@ def _get_layer_collections(layer_path, lconf=None, data=None): ldata.setVar('LAYERDIR', layer_path) try: - ldata = bb.parse.handle(lconf, ldata, include=True) + ldata = bb.parse.handle(lconf, ldata, include=True, baseconfig=True) except: raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path) ldata.expandVarref('LAYERDIR')