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.

(From OE-Core rev: ef7677dc90fac089f8b9f6da301cca022ed7284c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2022-12-08 11:46:07 +00:00
parent 4d19594b8b
commit 9773050910

View File

@ -43,7 +43,7 @@ def _get_layer_collections(layer_path, lconf=None, data=None):
ldata.setVar('LAYERDIR', layer_path) ldata.setVar('LAYERDIR', layer_path)
try: try:
ldata = bb.parse.handle(lconf, ldata, include=True) ldata = bb.parse.handle(lconf, ldata, include=True, baseconfig=True)
except: except:
raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path) raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path)
ldata.expandVarref('LAYERDIR') ldata.expandVarref('LAYERDIR')