arm: printf() is not available in some SPL configurations
authorChristian Riesch <christian.riesch@omicron.at>
Tue, 29 Nov 2011 00:11:03 +0000 (00:11 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:37 +0000 (23:59 +0100)
This patch avoids build breakage for SPLs that do not support printf.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/lib/eabi_compat.c

index eb3e26d4d20db0ce867355e12ad699a4972c5618..e1b87bebadbf727dc425ce7c1899e1cb6896a879 100644 (file)
@@ -13,7 +13,9 @@
 
 int raise (int signum)
 {
+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
        printf("raise: Signal # %d caught\n", signum);
+#endif
        return 0;
 }