From: Simon Glass Date: Mon, 30 Sep 2024 01:49:29 +0000 (-0600) Subject: stdio: Make use of the SERIAL define X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=d7f1672cf78dc576c5bccb8b2eb5f6ace7fe00bf;p=u-boot.git stdio: Make use of the SERIAL define This is always enabled for U-Boot proper, so simplify the condition in the common Makefile. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/include/stdio.h b/include/stdio.h index 7b999a519b..e732579553 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -9,10 +9,7 @@ int getchar(void); int tstc(void); /* stdout */ -#if !defined(CONFIG_SPL_BUILD) || \ - (defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_SERIAL)) || \ - (defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) && \ - defined(CONFIG_SPL_SERIAL)) +#if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(SERIAL) void putc(const char c); void puts(const char *s); #ifdef CONFIG_CONSOLE_FLUSH_SUPPORT