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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user