Skip to contentSkip to conversation

arch: blackfin: use cc-cross-prefix to set CROSS_COMPILE

PATCH In review Peter Foley 2 participants 3 messages Apr 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: blackfin: use cc-cross-prefix to set CROSS_COMPILE

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

---
 arch/blackfin/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/blackfin/Makefile +1 -1
index 46f42b2..3f47d26 100644
@@ -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
Signature · 1 line
1.7.5.rc1
#1 lore raw
Quoted 2 lines · Peter Foley

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

i'm not sure this is useful. if bfin-uclinux- doesnt exist, it's going to use the native gcc, and there is no native gcc for Blackfin targets (since it's a nommu arch). getting a missing bfin-uclinux-gcc error is a lot more useful than the native compiler rejecting Blackfin insns.
-mike

#2 lore raw
Quoted 10 lines · Mike Frysinger
Quoted 2 lines · Peter Foley

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

i'm not sure this is useful. if bfin-uclinux- doesnt exist, it's going to use the native gcc, and there is no native gcc for Blackfin targets (since it's a nommu arch). getting a missing bfin-uclinux-gcc error is a lot more useful than the native compiler rejecting Blackfin insns.
-mike

Okay, that makes sense.

Peter