Re: [PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL] kbuild updates - second round)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, linux-kbuild <linux-kbuild@...>, linux arch <linux-arch@...>, LKML <linux-kernel@...>, Linux/m68k <linux-m68k@...>, Rob Landley <rob@...>
Date: Sunday, October 21, 2007 - 2:29 pm

On Sun, 21 Oct 2007, Sam Ravnborg wrote:

Oops, indeed. Sorry, here's a new one...

m68k: Use cc-cross-prefix

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/Makefile |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -13,16 +13,14 @@
 # Copyright (C) 1994 by Hamish Macdonald
 #
 
-# test for cross compiling
-COMPILE_ARCH = $(shell uname -m)
-
 # override top level makefile
 AS += -m68020
 LDFLAGS := -m m68kelf
 LDFLAGS_MODULE += -T $(srctree)/arch/m68k/kernel/module.lds
-ifneq ($(COMPILE_ARCH),$(ARCH))
-	# prefix for cross-compiling binaries
-	CROSS_COMPILE = m68k-linux-gnu-
+ifneq ($(SUB_ARCH),$(ARCH))
+	ifeq ($(CROSS_COMPILE),)
+	       CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-)
+	endif
 endif
 
 ifdef CONFIG_SUN3

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GI:wqT PULL] kbuild updates - second round, Sam Ravnborg, (Fri Oct 19, 4:44 pm)
[PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL] kb..., Geert Uytterhoeven, (Sun Oct 21, 1:57 pm)
Re: [PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL..., Geert Uytterhoeven, (Sun Oct 21, 2:29 pm)
Re: [PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL..., Geert Uytterhoeven, (Mon Oct 22, 2:36 pm)
Re: [PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL..., Geert Uytterhoeven, (Mon Oct 22, 3:16 am)
[PATCH] cc-cross-prefix spelling (was: Re: [GI:wqT PULL] kbu..., Geert Uytterhoeven, (Sun Oct 21, 1:55 pm)