All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Marek <mmarek@suse.cz>
To: linux-kbuild@vger.kernel.org
Cc: akpm@linux-foundation.org, sam@ravnborg.org, roland@redhat.com
Subject: Re: [patch 3/3] kconfig CROSS_COMPILE option
Date: Tue, 08 Dec 2009 12:02:54 +0100	[thread overview]
Message-ID: <4B1E325E.2060307@suse.cz> (raw)
In-Reply-To: <200911172245.nAHMjEo9000533@imap1.linux-foundation.org>

On 17.11.2009 23:45, akpm@linux-foundation.org wrote:
> From: Roland McGrath <roland@redhat.com>
> 
> This adds CROSS_COMPILE as a kconfig string so you can store it in
> .config.  Then you can use plain "make" in the configured kernel build
> directory to do the right cross compilation without setting the
> command-line or environment variable every time.
> 
> With this, you can set up different build directories for different kernel
> configurations, whether native or cross-builds, and then use the simple:
> 
> 	make -C /build/dir M=module-source-dir
> 
> idiom to build modules for any given target kernel, indicating which one
> by nothing but the build directory chosen.
> 
> I tried a version that defaults the string with env="CROSS_COMPILE" so
> that in a "make oldconfig" with CROSS_COMPILE in the environment you can
> just hit return to store the way you're building it.  But the kconfig
> prompt for strings doesn't give you any way to say you want an empty
> string instead of the default, so I punted that.

This was posted in September, then superseded by the "save ARCH &
CROSS_COMPILE" patch (commit 5755433), which was then reverted because
it was causing too many issues (commit 2331d1a). In light of the revert,
I think I like Roland's patch: It's an optional feature, i.e if one does
not set the config option, nothing changes. So unless someone sees a
problem that I'm not seeing, I'll add this to for-next.

How to check for $ARCH consistency after the include/asm symlink removal
is another problem, separate from this.

Michal

      reply	other threads:[~2009-12-08 11:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-17 22:45 [patch 3/3] kconfig CROSS_COMPILE option akpm
2009-12-08 11:02 ` Michal Marek [this message]

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=4B1E325E.2060307@suse.cz \
    --to=mmarek@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=roland@redhat.com \
    --cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.