summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2013-02-14 16:50:38 +0800
committerChin Liang See <clsee@altera.com>2013-02-14 16:50:38 +0800
commite3e8609e2a36d3e0a1362a3767b2f07ff355ec11 (patch)
tree988d2c94ed1f2c8ab537823a5098aded9b574f52 /common/console.c
parent0ca85c3df32bfecaea4f0ac007209d715d712ab6 (diff)
downloadu-boot-socfpga-rel_ghrd_RC8.tar.gz
Add OSE support and fix debug mode build error Signed-off-by: Chin Liang See <clsee@altera.com>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 60077197b5..7828d5b375 100644
--- a/common/console.c
+++ b/common/console.c
@@ -410,10 +410,12 @@ void puts(const char *s)
fputs(stdout, s);
} else {
/* Send directly to the handler */
-#ifdef CONFIG_SPL_SEMIHOSTING_SUPPORT
if (gd->have_console)
-#endif
+#if !defined(CONFIG_SPL_BUILD) | defined(CONFIG_SPL_SERIAL_SUPPORT)
serial_puts(s);
+#else
+ ; /* no printout */
+#endif
#ifdef CONFIG_SPL_SEMIHOSTING_SUPPORT
semihosting_write(s);
#endif