[U-Boot] [PATCH v3] arm: printf() is not available in some SPL configurations

Christian Riesch christian.riesch at omicron.at
Tue Nov 22 09:26:19 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 <trini at ti.com>
Acked-by: Tom Rini <trini at ti.com>
---
Changes for v3:
- Removed extra white space
- Separated patch from patchset [1]

[1] http://lists.denx.de/pipermail/u-boot/2011-November/110635.html

 arch/arm/lib/eabi_compat.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c
index eb3e26d..e1b87be 100644
--- a/arch/arm/lib/eabi_compat.c
+++ b/arch/arm/lib/eabi_compat.c
@@ -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;
 }
 
-- 
1.7.0.4



More information about the U-Boot mailing list