2011-04-24 21:08:14

by Peter Foley

[permalink] [raw]
Subject: [PATCH] arch: score: use cc-cross-prefix to set CROSS_COMPILE

This patch updates the score Makefile to use cc-cross-prefix
to only set CROSS_COMPILE if score-linux-gcc exists.

Signed-off-by: Peter Foley <[email protected]>
---
arch/score/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/score/Makefile b/arch/score/Makefile
index 974aefe..2807216 100644
--- a/arch/score/Makefile
+++ b/arch/score/Makefile
@@ -7,7 +7,7 @@
#

KBUILD_DEFCONFIG := spct6600_defconfig
-CROSS_COMPILE := score-linux-
+CROSS_COMPILE := $(call cc-cross-prefix, score-linux-)

#
# CPU-dependent compiler/assembler options for optimization.
--
1.7.5.rc1