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'
|
return 'shell'
|
||||||
|
|
||||||
def execute(self, ctx):
|
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')]
|
cmd = [ctx.environ.get('SHELL', '/bin/sh')]
|
||||||
if self.cmd:
|
if self.cmd:
|
||||||
cmd.append('-c')
|
cmd.append('-c')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user