From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kbuild <linux-kbuild@vger.kernel.org>,
linux arch <linux-arch@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux/m68k <linux-m68k@vger.kernel.org>,
Rob Landley <rob@landley.net>
Subject: [PATCH] m68k: Use cc-cross-prefix (was: Re: [GI:wqT PULL] kbuild updates - second round)
Date: Sun, 21 Oct 2007 19:57:39 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0710211956280.6155@anakin> (raw)
In-Reply-To: <20071019204415.GA623@uranus.ravnborg.org>
On Fri, 19 Oct 2007, Sam Ravnborg wrote:
> The cc-cross-prefix is new and developed on request from Geert Uytterhoeven.
> With cc-cross-prefix it is now much easier to have a few default
> cross compile prefixes and defaulting to none - if none of them were present.
> ARCH maintainers are expected to pick up this feature soon.
Thanks, seems to work fine!
m68k: Use cc-cross-prefix
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
arch/m68k/Makefile | 8 +++-----
1 file changed, 3 insertions(+), 5 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-
+ 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
next prev parent reply other threads:[~2007-10-21 17:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 20:44 [GI:wqT PULL] kbuild updates - second round Sam Ravnborg
2007-10-21 17:55 ` [PATCH] cc-cross-prefix spelling (was: Re: [GI:wqT PULL] kbuild updates - second round) Geert Uytterhoeven
2007-10-21 18:58 ` Sam Ravnborg
2007-10-21 17:57 ` Geert Uytterhoeven [this message]
2007-10-21 18:22 ` [PATCH] m68k: Use cc-cross-prefix " Sam Ravnborg
2007-10-21 18:29 ` Geert Uytterhoeven
2007-10-22 1:07 ` Kolbjørn Barmen
2007-10-22 7:16 ` Geert Uytterhoeven
2007-10-22 8:09 ` Kolbjørn Barmen
2007-10-22 9:13 ` Andreas Schwab
2007-10-22 18:36 ` Geert Uytterhoeven
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=Pine.LNX.4.64.0710211956280.6155@anakin \
--to=geert@linux-m68k.org \
--cc=akpm@linux-foundation.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
--cc=rob@landley.net \
--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
all inboxes | Powered by JetHome®