From: Michal Marek <mmarek@suse.cz>
To: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] [KBUILD] Put the CROSS_COMPILE and ARCH variables in the build directory makefile
Date: Tue, 30 Oct 2012 14:46:19 +0100 [thread overview]
Message-ID: <508FDA2B.9000001@suse.cz> (raw)
In-Reply-To: <20120930232005.GB30637@obsidianresearch.com>
On 1.10.2012 01:20, Jason Gunthorpe wrote:
> To make cross building a little simpler. The usage with mini-config would
> be something like:
>
> $ mkdir build
> $ make ARCH=arm CROSS_COMPILE=arm-v5te-linux-gnueabi- \
> KCONFIG_ALLCONFIG=mini.config O=build allnoconfig
> $ make -C build/
Are you sure this is not going to suffer from the same issues as
5755433? See
commit 2331d1a6cd3d6e580bc88b9a160066d9e1177fe1
Author: Sam Ravnborg <sam@ravnborg.org>
Date: Sun Oct 11 23:22:58 2009 +0200
kbuild: revert "save ARCH & CROSS_COMPILE ..."
Revert commit 575543347b5baed0ca927cb90ba8807396fe9cc9
It caused following issues:
- On architectures where ARCH= setting is used to select between
32 and 64 bit this was no longer possible without "make mrproper"
- If ARCH was changed then kbuild refused to run "make mrproper"
because ARCH had changed
- When CROSS_COMPILE was changed people were asked to run "make
mrproper"
but kbuild refused to run "make mrproper" because CROSS_COMPILE
changed.
- Spaces in CROSS_COMPILE was not 'supported'
- If an non-existing ARCH= was used kbuild could get stuck
Lessons learned:
. Despite being simple and straghtforward people uses very different
approaches when building the kernel.
. CROSS_COMPILE is sometimes used for ccache despite cache being
only a CC frontend so one would have expected CC to be
used for this purpose.
. And obviously this was not tested widely enough.
Michal
next prev parent reply other threads:[~2012-10-30 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-30 23:20 [PATCH] [KBUILD] Put the CROSS_COMPILE and ARCH variables in the build directory makefile Jason Gunthorpe
2012-10-30 13:46 ` Michal Marek [this message]
2012-10-30 15:19 ` Jason Gunthorpe
2012-10-30 15:28 ` Michal Marek
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=508FDA2B.9000001@suse.cz \
--to=mmarek@suse.cz \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-kbuild@vger.kernel.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