From 271f0bf6ca502f02d3b8b9f10335ff13f16b0f57 Mon Sep 17 00:00:00 2001 From: Michael Adler Date: Tue, 9 Aug 2022 15:55:11 +0200 Subject: [PATCH] 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 Signed-off-by: Jan Kiszka --- kas/plugins/shell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kas/plugins/shell.py b/kas/plugins/shell.py index e62a17e..50e101a 100644 --- a/kas/plugins/shell.py +++ b/kas/plugins/shell.py @@ -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')