arch: blackfin: use cc-cross-prefix to set CROSS_COMPILE
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
@@ -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
Quoted 2 lines · Peter Foley
This patch updates the blackfin
Makefileto use cc-cross-prefix to only setCROSS_COMPILEif 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
Quoted 10 lines · Mike Frysinger
Quoted 2 lines · Peter Foley
This patch updates the blackfin
Makefileto use cc-cross-prefix to only setCROSS_COMPILEif 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