linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sam Ravnborg <sam@ravnborg.org>
Subject: [patch 01/14] m68k: Use cc-cross-prefix
Date: Sun, 27 Jan 2008 13:32:17 +0100	[thread overview]
Message-ID: <20080127123355.557539057@mail.of.borg> (raw)
In-Reply-To: 20080127123216.897698766@mail.of.borg

[-- Attachment #1: m68k-cc-cross-prefix.diff --]
[-- Type: text/plain, Size: 1183 bytes --]

From: Geert Uytterhoeven <geert@linux-m68k.org>

m68k: Use cc-cross-prefix

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
---
 arch/m68k/Makefile |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -13,16 +13,15 @@
 # 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 ($(SUBARCH),$(ARCH))
+	ifeq ($(CROSS_COMPILE),)
+		CROSS_COMPILE := $(call cc-cross-prefix, \
+			m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-)
+	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


  reply	other threads:[~2008-01-27 12:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-27 12:32 [patch 00/14] M68k patches for 2.6.25 Geert Uytterhoeven
2008-01-27 12:32 ` Geert Uytterhoeven [this message]
2008-01-27 12:32 ` [patch 02/14] m68k: ARRAY_SIZE() cleanup Geert Uytterhoeven
2008-01-27 12:32 ` [patch 03/14] dio: " Geert Uytterhoeven
2008-01-27 12:32 ` [patch 04/14] m68k: Balance ioremap and iounmap in m68k/atari/hades-pci.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 05/14] nubus: kill drivers/nubus/nubus_syms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 06/14] m68k: kill arch/m68k/mac/mac_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 07/14] m68k: kill arch/m68k/hp300/ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 08/14] m68k: kill arch/m68k/amiga/amiga_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 09/14] m68k: kill arch/m68k/atari/atari_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 10/14] m68k: kill arch/m68k/mvme16x/mvme16x_ksyms.c Geert Uytterhoeven
2008-01-27 12:32 ` [patch 11/14] mac68k: macii adb comment correction Geert Uytterhoeven
2008-01-27 12:32 ` [patch 12/14] mac68k: remove dead code Geert Uytterhoeven
2008-01-27 12:32 ` [patch 13/14] mac68k: add nubus card definitions and a typo fix Geert Uytterhoeven
2008-01-27 12:32 ` [patch 14/14] mac68k: remove dead MAC_ADBKEYCODES Geert Uytterhoeven
2008-01-28  5:32 ` [patch 00/14] M68k patches for 2.6.25 Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080127123355.557539057@mail.of.borg \
    --to=geert@linux-m68k.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).