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:
parent
de7acb5f0d
commit
271f0bf6ca
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user