ulib: Disable console messages

By default U-Boot shows the console settings on startup, e.g.:

   In:    serial,vidconsole
   Out:   serial,vidconsole
   Err:   serial,vidconsole

These messages are useful for the user but not for an application using
U-Boot as a library. Disable them.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-03 15:46:03 -06:00
parent 2d91e0aa4d
commit 52a895fecd

View File

@@ -1301,7 +1301,7 @@ int console_init_r(void)
done:
if (!IS_ENABLED(CONFIG_SYS_CONSOLE_INFO_QUIET))
if (!IS_ENABLED(CONFIG_SYS_CONSOLE_INFO_QUIET) && !gd_ulib())
stdio_print_current_devices();
#ifdef CONFIG_VIDCONSOLE_AS_LCD