]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stdio: Make use of the SERIAL define
authorSimon Glass <sjg@chromium.org>
Mon, 30 Sep 2024 01:49:29 +0000 (19:49 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2024 17:44:47 +0000 (11:44 -0600)
This is always enabled for U-Boot proper, so simplify the condition
in the common Makefile.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/stdio.h

index 7b999a519ba954df7b448708c8824e4ac23c293b..e73257955339dcc9673fb8c5bab97b9fe6bbcb20 100644 (file)
@@ -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