[U-Boot] [RFC PATCH v2 07/12] arm: printf() is not available in some SPL configurations
Christian Riesch
christian.riesch at omicron.at
Mon Nov 21 17:33:42 CET 2011
This patch avoids build breakage for SPLs that do not support printf.
Signed-off-by: Christian Riesch <christian.riesch at omicron.at>
Cc: Wolfgang Denk <wd at denx.de>
Cc: Tom Rini <tom.rini at gmail.com>
---
arch/arm/lib/eabi_compat.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c
index eb3e26d..748c808 100644
--- a/arch/arm/lib/eabi_compat.c
+++ b/arch/arm/lib/eabi_compat.c
@@ -13,10 +13,13 @@
int raise (int signum)
{
+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
printf("raise: Signal # %d caught\n", signum);
+#endif
return 0;
}
+
/* Dummy function to avoid linker complaints */
void __aeabi_unwind_cpp_pr0(void)
{
--
1.7.0.4
More information about the U-Boot
mailing list