From 5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a Mon Sep 17 00:00:00 2001 From: Christian Riesch Date: Tue, 29 Nov 2011 00:11:03 +0000 Subject: [PATCH] arm: printf() is not available in some SPL configurations MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch avoids build breakage for SPLs that do not support printf. Signed-off-by: Christian Riesch Cc: Wolfgang Denk Cc: Albert Aribaud Acked-by: Tom Rini Acked-by: Andreas Bießmann --- arch/arm/lib/eabi_compat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c index eb3e26d4d2..e1b87bebad 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; } -- 2.25.1