* kbuild: Separate ouput directory support
@ 2003-08-19 21:41 Sam Ravnborg
2003-08-19 21:53 ` Jeff Garzik
0 siblings, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2003-08-19 21:41 UTC (permalink / raw)
To: Linus Torvalds, akpm, Kai Germaschewski; +Cc: linux-kernel
The following set of patches introduce support for
separate output directory when building a kernel.
Typical usage is building several kernels with different configurations -
but based on the same kernel src.
Consider the following setup:
/home/sam/bk/linux-2.6 <= kernel src
/home/sam/kernel/mars <= My workstation
/home/sam/kernel/defconfig <= defconfig for compiletime testing
Then in order to handle the two different configurations I just have to do:
cd /home/sam/bk/linux-2.6
make O=../../kernel/mars
And the same for the defconfig version.
All output files are stored in the output directory, including .config.
[Thanks to Roman Zippel which made this loong time ago in kconfig].
The patch has been in existence in several months but only lately becoming
in a suitable state ready for inclusion. It is developed based on an initial
concept made by Kai Germaschewski, but refined a lot since then.
It works with a kernel based on default configuration (make defconfig).
It is divided up in the following parts:
core the kbuild changes to support separate output directory
ieee Fix in ieee Makefile
i386 Fix in i386 Makefiles + new syntax enabled for always
This was required because i386 had an executable located in
a subdirectory.
include Fixes for errornous include paths, and one place where a generated
.c file references a .h file in the kernel tree.
Please pull from
bk pull bk://linux-sam.bkbits.net/kbuild
Patches follows this mail.
Sam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kbuild: Separate ouput directory support
2003-08-19 21:41 kbuild: Separate ouput directory support Sam Ravnborg
@ 2003-08-19 21:53 ` Jeff Garzik
2003-08-19 21:56 ` Sam Ravnborg
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2003-08-19 21:53 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Linus Torvalds, akpm, Kai Germaschewski, linux-kernel
Sam Ravnborg wrote:
> The following set of patches introduce support for
> separate output directory when building a kernel.
> Typical usage is building several kernels with different configurations -
> but based on the same kernel src.
Thanks, this is some pretty neat stuff.
Is it possible, with your patches, to build from a kernel tree on a
read-only medium?
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kbuild: Separate ouput directory support
2003-08-19 21:53 ` Jeff Garzik
@ 2003-08-19 21:56 ` Sam Ravnborg
2003-08-19 22:13 ` Mike Fedyk
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Sam Ravnborg @ 2003-08-19 21:56 UTC (permalink / raw)
To: Jeff Garzik
Cc: Sam Ravnborg, Linus Torvalds, akpm, Kai Germaschewski,
linux-kernel
On Tue, Aug 19, 2003 at 05:53:33PM -0400, Jeff Garzik wrote:
> Is it possible, with your patches, to build from a kernel tree on a
> read-only medium?
Yes, thats possible. But I have seen that as a secondary possibility.
But I know people has asked about the possibility to build a kernel
from src located on a CD. And thats possible with this patch.
Sam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kbuild: Separate ouput directory support
2003-08-19 21:56 ` Sam Ravnborg
@ 2003-08-19 22:13 ` Mike Fedyk
2003-08-21 3:09 ` Chris Friesen
2003-08-21 9:42 ` Geert Uytterhoeven
2 siblings, 0 replies; 6+ messages in thread
From: Mike Fedyk @ 2003-08-19 22:13 UTC (permalink / raw)
To: Jeff Garzik, Sam Ravnborg, Kai Germaschewski, linux-kernel
On Tue, Aug 19, 2003 at 11:56:56PM +0200, Sam Ravnborg wrote:
> On Tue, Aug 19, 2003 at 05:53:33PM -0400, Jeff Garzik wrote:
> > Is it possible, with your patches, to build from a kernel tree on a
> > read-only medium?
>
> Yes, thats possible. But I have seen that as a secondary possibility.
> But I know people has asked about the possibility to build a kernel
> from src located on a CD. And thats possible with this patch.
That also means you can run multiple builds over nfs or even on the same
machine from the same tree (or a different tree, that was cp -al and then
patched).
Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kbuild: Separate ouput directory support
2003-08-19 21:56 ` Sam Ravnborg
2003-08-19 22:13 ` Mike Fedyk
@ 2003-08-21 3:09 ` Chris Friesen
2003-08-21 9:42 ` Geert Uytterhoeven
2 siblings, 0 replies; 6+ messages in thread
From: Chris Friesen @ 2003-08-21 3:09 UTC (permalink / raw)
To: Sam Ravnborg
Cc: Jeff Garzik, Linus Torvalds, akpm, Kai Germaschewski,
linux-kernel
Sam Ravnborg wrote:
> On Tue, Aug 19, 2003 at 05:53:33PM -0400, Jeff Garzik wrote:
>
>>Is it possible, with your patches, to build from a kernel tree on a
>>read-only medium?
>>
>
> Yes, thats possible. But I have seen that as a secondary possibility.
> But I know people has asked about the possibility to build a kernel
> from src located on a CD. And thats possible with this patch.
This rocks. I've been cleaning and rebuilding with different configs up
till now. Once we switch to 2.6 this will make things much nicer.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kbuild: Separate ouput directory support
2003-08-19 21:56 ` Sam Ravnborg
2003-08-19 22:13 ` Mike Fedyk
2003-08-21 3:09 ` Chris Friesen
@ 2003-08-21 9:42 ` Geert Uytterhoeven
2 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2003-08-21 9:42 UTC (permalink / raw)
To: Sam Ravnborg
Cc: Jeff Garzik, Linus Torvalds, akpm, Kai Germaschewski,
Linux Kernel Development
On Tue, 19 Aug 2003, Sam Ravnborg wrote:
> On Tue, Aug 19, 2003 at 05:53:33PM -0400, Jeff Garzik wrote:
> > Is it possible, with your patches, to build from a kernel tree on a
> > read-only medium?
>
> Yes, thats possible. But I have seen that as a secondary possibility.
> But I know people has asked about the possibility to build a kernel
> from src located on a CD. And thats possible with this patch.
Or from a src tree in ClearCase.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-08-21 9:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 21:41 kbuild: Separate ouput directory support Sam Ravnborg
2003-08-19 21:53 ` Jeff Garzik
2003-08-19 21:56 ` Sam Ravnborg
2003-08-19 22:13 ` Mike Fedyk
2003-08-21 3:09 ` Chris Friesen
2003-08-21 9:42 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox