]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/common.h
spl, common, serial: build SPL without serial support
[karo-tx-uboot.git] / include / common.h
index fcc9ae7c21cf5b2ff5e2e57264bfa908f739fc99..5c076d6ce184dd7d7cc1d4dfd447a613db3c47aa 100644 (file)
@@ -830,11 +830,18 @@ int       getc(void);
 int    tstc(void);
 
 /* stdout */
+#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_SERIAL_SUPPORT)
+#define        putc(...) do { } while (0)
+#define puts(...) do { } while (0)
+#define printf(...) do { } while (0)
+#define vprintf(...) do { } while (0)
+#else
 void   putc(const char c);
 void   puts(const char *s);
 int    printf(const char *fmt, ...)
                __attribute__ ((format (__printf__, 1, 2)));
 int    vprintf(const char *fmt, va_list args);
+#endif
 
 /* stderr */
 #define eputc(c)               fputc(stderr, c)