[PATCH] arch: blackfin: use cc-cross-prefix to set CROSS_COMPILE

From: Peter Foley
Date: Sun Apr 24 2011 - 17:11:46 EST


This patch updates the blackfin Makefile to use cc-cross-prefix
to only set CROSS_COMPILE if bfin-uclinux-gcc exists.

Signed-off-by: Peter Foley <pefoley2@xxxxxxxxxxx>
---
arch/blackfin/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 46f42b2..3f47d26 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -7,7 +7,7 @@
#

ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := bfin-uclinux-
+CROSS_COMPILE := $(call cc-cross-prefix, bfin-uclinux-)
endif
LDFLAGS_vmlinux := -X
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
--
1.7.5.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/