Skip to content

common/console: respect silent console in console_announce_r - #35

Open
kleinbem wants to merge 1 commit into
AsahiLinux:asahifrom
kleinbem:feat/silent-console-banner
Open

kleinbem wants to merge 1 commit into
AsahiLinux:asahifrom
kleinbem:feat/silent-console-banner

Conversation

@kleinbem

@kleinbem kleinbem commented Nov 13, 2026 •

Copy link
Copy Markdown

Description

When CONFIG_SILENT_CONSOLE is enabled and GD_FLG_SILENT is active in gd->flags (for example via the silent environment variable), console_announce_r() previously bypassed the silence check and called console_puts_select(stdout, false, buf) unconditionally. Because console_puts_select() outputs directly to stdio device callbacks without checking gd->flags, the U-Boot banner was displayed on the video console even when silent mode was explicitly configured.

This commit adds a check for IS_ENABLED(CONFIG_SILENT_CONSOLE) && (gd->flags & GD_FLG_SILENT) at the entry of console_announce_r(), keeping the console completely silent when requested (e.g. for silent splash-screen boots).

Signed-off-by: Marcelo Alcantara maralc@gmail.com
Signed-off-by: kleinbem martin.kleinberger@gmail.com

When CONFIG_SILENT_CONSOLE is enabled and GD_FLG_SILENT is set (e.g. via
the 'silent' environment variable), console_announce_r() previously
called console_puts_select() unconditionally, printing the startup
banner to the video console regardless of the silent console setting.

Check GD_FLG_SILENT before outputting the banner so systems configured
with a silent console (such as splash-screen boots) remain silent.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
Signed-off-by: kleinbem <martin.kleinberger@gmail.com>
@kleinbem
kleinbem force-pushed the feat/silent-console-banner branch from db3254d to b1826f6 Compare November 13, 2026 09:37
@kleinbem
kleinbem marked this pull request as ready for review November 13, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant