From 772cb5748b1e32ccdaf752c2f36cfb3e54e34144 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 14 Mar 2022 12:37:47 +0100 Subject: [PATCH] build: Resolve handling of -- separator in the absence of a config file The fixed 'kas build -- -e', i.e. the build with the default .config.yaml while trying to forward arguments to bitbake. Signed-off-by: Jan Kiszka --- kas/plugins/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kas/plugins/build.py b/kas/plugins/build.py index 504ba62..3896f66 100644 --- a/kas/plugins/build.py +++ b/kas/plugins/build.py @@ -78,6 +78,10 @@ class Build: Executes the build command of the kas plugin. """ + if args.config and args.config.startswith('-'): + args.extra_bitbake_args.insert(0, args.config) + args.config = None + ctx = create_global_context(args) ctx.config = Config(ctx, args.config, args.target, args.task)