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:
parent
680c67d756
commit
772cb5748b
@ -78,6 +78,10 @@ class Build:
|
|||||||
Executes the build command of the kas plugin.
|
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 = create_global_context(args)
|
||||||
ctx.config = Config(ctx, args.config, args.target, args.task)
|
ctx.config = Config(ctx, args.config, args.target, args.task)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user