feat(shell): print bitbake command

This is useful for people who start an interactive 'kas shell' and would
like to know the exact build command which 'kas build' would use.

Signed-off-by: Michael Adler <michael.adler@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Michael Adler 2022-08-09 15:55:11 +02:00 committed by Jan Kiszka
parent de7acb5f0d
commit 271f0bf6ca

View File

@ -115,6 +115,9 @@ class ShellCommand(Command):
return 'shell'
def execute(self, ctx):
logging.info("To start the default build, run: bitbake -c %s %s",
ctx.config.get_bitbake_task(),
' '.join(ctx.config.get_bitbake_targets()))
cmd = [ctx.environ.get('SHELL', '/bin/sh')]
if self.cmd:
cmd.append('-c')