summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChristian Riesch <christian.riesch@omicron.at>2011-11-29 00:11:03 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-12-06 23:59:37 +0100
commit5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a (patch)
tree12892d775b5597be78918e439261d1a7e736f879 /arch
parentf7264c36cde2d9423798fd7a93cd20698f426b44 (diff)
downloadu-boot-imx-5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a.zip
u-boot-imx-5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a.tar.gz
u-boot-imx-5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a.tar.bz2
arm: printf() is not available in some SPL configurations
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/eabi_compat.c2
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;
}