Re: [PATCH] kbuild: save ARCH & CROSS_COMPILE when building akernel

From: Sam Ravnborg
Date: Sun Oct 11 2009 - 17:44:43 EST


On Fri, Oct 09, 2009 at 11:02:09AM +0200, Peter Zijlstra wrote:
> On Mon, 2009-07-20 at 12:01 +0200, Sam Ravnborg wrote:
> > This works both for plain builds and for O=...
> > builds.
> > So now you can do:
> > $ mkdir sparc64
> > $ make O=sparc64 ARCH=sparc64 CROSS_COMPILE=sparc64-linux- defconfig
> > $ cd sparc64
> > $ make
>
> Like anyone who does a lot of cross builds will ever write that by
> hand..

I usually have the first three lines scripted.
And when entering _any_ arch specific directory it
is convinient just to type 'make'.

And yes - I do a lot of cross builds as kbuild by nature
is not tied to a specific architecture.

Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/