ulib: board_f: Skip showing CPU info with ulib

When running as a library, don't show the CPU information, to avoid
printing output before the main program starts.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-11-05 19:47:28 +01:00
parent 52fde1afe0
commit 7850063907

View File

@@ -159,6 +159,10 @@ static int print_cpuinfo(void)
char desc[512];
int ret;
/* Skip CPU info when running as a library */
if (gd_ulib())
return 0;
dev = cpu_get_current_dev();
if (!dev) {
debug("%s: Could not get CPU device\n",