mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@osdl.org>
Subject: Re: massive cross-builds without too much PITA
Date: Thu, 28 Oct 2004 17:58:53 +0100	[thread overview]
Message-ID: <20041028165853.GT24336@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <Pine.GSO.4.61.0410281331320.7058@waterleaf.sonytel.be>

On Thu, Oct 28, 2004 at 01:36:53PM +0200, Geert Uytterhoeven wrote:
> On Thu, 28 Oct 2004, Al Viro wrote:
> > 6) cross-sparse: sparse snapshots live on
> > http://www.codemonkey.org.uk/projects/bitkeeper/sparse/;  I'm probably doing
> > more work than necessary since I build a separate binary for each target.
> > What it means is
> > 	a) editing pre-process.h to point to cross-gcc headers (e.g.
> > /usr/lib/gcc-lib/alpha-linux/3.3.4/include) and
> > 	b) editing target.c (probably not needed these days)
> > make CFLAGS=-O3
> > mv ~/bin/sparse-<arch>{,-old}
> > cp check ~/bin/sparse-<arch>
> > does the build-and-install.
> 
> I use the native (ia32) sparse for m68k cross-builds, using the following trick
> (IIRC as suggested by Linus) in arch/m68k/Makefile:
> 
>     CHECK := $(CHECK) -D__mc68000__=1 -I$(shell $(CC) -print-file-name=include)
> 
> I guess a similar construct would work for other archs, even for native builds.

Hrm...  That would work, but we probably want -I$(...) part in toplevel
Makefile instead of duplicating it all over the place.

> > ext2 works fine for build boxen - you are not dealing with hard-to-recreate
> > data there (diffs are going to master and you want them carved into small
> > chunks from the very beginning anyway).  So journalling, etc. is a pointless
> > overhead in this situation.  Keep in mind that forest of cp -rl'ed kernel
> > trees gets hard on caches once it grows past ~60 copies regardless of the
> > fs involved; if your patchset gets bigger than that, fragment it and do
> > porting, etc. group-by-group.
> 
> Hmm, I seem to have 502 hardlinked copies of COPYING, that means at least 502
> trees :-)

Oh, *having* that many is not a problem.  Try to run diff in a series of
502 trees, linked or not, and see how bad that'll get you.

> Just in case you ever want to start doing m68k as well: I already have a few
> sparse-related cleanups at
> http://linux-m68k-cvs.ubb.ca/~geert/linux-m68k-2.6.x-merging/XXX-sparse-*

Hrm...  How far is Linus' tree from building on m68k these days?  I hadn't
looked at the delta since 2.6.7 or so, but it used to be fairly invasive
in some places...

  parent reply	other threads:[~2004-10-28 16:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28  5:48 Al Viro
2004-10-28 11:36 ` Geert Uytterhoeven
2004-10-28 15:56   ` Kalin KOZHUHAROV
2004-10-28 16:58   ` Al Viro [this message]
2004-10-28 17:28     ` Geert Uytterhoeven
2004-10-28 16:21 ` Alessandro Amici
2004-10-28 16:52   ` Al Viro
2004-10-31  6:29   ` Herbert Poetzl

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=20041028165853.GT24336@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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

Powered by JetHome