]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/devtool: use bb.util.listtasks instead of __BBTASKS
authorRoss Burton <ross.burton@arm.com>
Wed, 11 Dec 2024 12:08:47 +0000 (12:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Dec 2024 13:31:22 +0000 (13:31 +0000)
Don't access private variables, instead use the new bb.build.listtasks()
function (from bitbake 185c4b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/lib/devtool/build.py
scripts/lib/devtool/utilcmds.py

index 935ffab46c5ec86d7b3f7b062cc7dea8e3d642ea..0b2c3d33dc1297c39565705a744f6276c216c469 100644 (file)
@@ -49,7 +49,7 @@ def build(args, config, basepath, workspace):
         rd = parse_recipe(config, tinfoil, args.recipename, appends=True, filter_workspace=False)
         if not rd:
             return 1
-        deploytask = 'do_deploy' in rd.getVar('__BBTASKS')
+        deploytask = 'do_deploy' in bb.build.listtasks(rd)
     finally:
         tinfoil.shutdown()
 
index 964817766b73cc7c92018b32fa5f4bc56b2abbce..bf39f71b11856571b35296e18ced12cc741d233c 100644 (file)
@@ -64,7 +64,7 @@ def configure_help(args, config, basepath, workspace):
         b = rd.getVar('B')
         s = rd.getVar('S')
         configurescript = os.path.join(s, 'configure')
-        confdisabled = 'noexec' in rd.getVarFlags('do_configure') or 'do_configure' not in (rd.getVar('__BBTASKS', False) or [])
+        confdisabled = 'noexec' in rd.getVarFlags('do_configure') or 'do_configure' not in (bb.build.listtasks(rd))
         configureopts = oe.utils.squashspaces(rd.getVar('CONFIGUREOPTS') or '')
         extra_oeconf = oe.utils.squashspaces(rd.getVar('EXTRA_OECONF') or '')
         extra_oecmake = oe.utils.squashspaces(rd.getVar('EXTRA_OECMAKE') or '')