mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
x86: Ensure SPL banner is only shown once
Print the banner in SPL init only if the spl_board_init() function isn't enabled. The spl_board_init() function is in the same file, but is called later, by board_init_r(). This avoids printing two banners, which causes tests to fail. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
03fe79c091
commit
3525258019
1 changed files with 7 additions and 1 deletions
|
@ -97,7 +97,13 @@ static int x86_spl_init(void)
|
|||
return ret;
|
||||
}
|
||||
#endif
|
||||
preloader_console_init();
|
||||
/*
|
||||
* spl_board_init() below sets up the console if enabled. If it isn't,
|
||||
* do it here. We cannot call this twice since it results in a double
|
||||
* banner and CI tests fail.
|
||||
*/
|
||||
if (!IS_ENABLED(CONFIG_SPL_BOARD_INIT))
|
||||
preloader_console_init();
|
||||
#if !defined(CONFIG_TPL) && !CONFIG_IS_ENABLED(CPU)
|
||||
ret = print_cpuinfo();
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in a new issue