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 <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2022-03-14 12:37:47 +01:00
parent 680c67d756
commit 772cb5748b

View File

@ -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)