mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Sam Ravnborg <sam@ravnborg.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kconfig CROSS_COMPILE option
Date: Mon,  7 Sep 2009 11:38:01 -0700 (PDT)	[thread overview]
Message-ID: <20090907183801.379228BF3F@magilla.sf.frob.com> (raw)
In-Reply-To: Pavel Machek's message of  Monday, 7 September 2009 15:09:04 +0200 <20090907130402.GB1595@ucw.cz>

> Yes that would be very nice. Editing Makefile every time I
> crosscomppile for arm sucks.

The other trick I can recommend is to write a GNUmakefile containing:

ARCH=foo
CROSS_COMPILE=foo-linux-
include Makefile

(GNU make reads GNUmakefile in preference to Makefile.)
But this manual hackery is still not nearly as nice as the automagic way.

> But... do we need an option for subarch, too? And will Kconfig system
> handle that?

I'm not sure I follow exactly what your concern is.  I am mostly familiar
with doing x86 and powerpc builds.  For both of those, the kernel config
sets whether it's the 32-bit or 64-bit world.


Thanks,
Roland

  reply	other threads:[~2009-09-07 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-05  0:29 Roland McGrath
2009-09-07 13:09 ` Pavel Machek
2009-09-07 18:38   ` Roland McGrath [this message]
2009-09-09  8:08     ` Pavel Machek
2009-09-09 13:20     ` 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=20090907183801.379228BF3F@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --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®