[PATCH] spl: Always define preloader_console_init

Lokesh Vutla lokeshvutla at ti.com
Fri May 8 16:50:12 CEST 2020



On 08/05/20 4:38 AM, Samuel Holland wrote:
> A large number of boards call preloader_console_init unconditionally.
> Currently, they fail to build with CONFIG_SPL_SERIAL=n, because the
> function is undefined in that case. To fix the build, always define
> preloader_console_init, but make it no-op when CONFIG_SPL_SERIAL=n.
> 
> For the few boards that did check for CONFIG_SPL_SERIAL before calling
> preloader_console_init, remove the checks, since the function can now
> be called unconditionally.
> 
> Signed-off-by: Samuel Holland <samuel at sholland.org>

Reviewed-by: Lokesh Vutla <lokeshvutla at ti.com>

Thanks and regards,
Lokesh


More information about the U-Boot mailing list