diff options
| author | Simon Glass <[email protected]> | 2024-09-29 19:49:29 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-11 11:44:47 -0600 |
| commit | d7f1672cf78dc576c5bccb8b2eb5f6ace7fe00bf (patch) | |
| tree | dfaf0a59d08e97a642a8269170706517cb8424cf | |
| parent | 47bd48048fb1f0e8004456c69fa4acc98bbbb7df (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
| -rw-r--r-- | include/stdio.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h index 7b999a519ba..e7325795533 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 |
