[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-20 Thread Miles Bader
David Woodhouse [EMAIL PROTECTED] writes: Of course it's a useful feature. Definitely. I already use home-grown scripts to maintain multiple object-trees, with the sources symlinked to a single source tree, because I generally maintain several different platforms simultaneously. Having one

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: I have a question; What problem is this supposed to solve? Two problems (at least): 1) You want to compile your kernel based on two different configurations, but sharing the same src. No need to have a duplicate of all src. -

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 12:31:15PM -0800, Larry McVoy wrote: It can be really nice to maintain a bunch of different architectures at the same time from the same tree. It also makes it really easy to clean a tree. On the other hand, I do wonder whether ccache could be used to get the same

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 03:46:28PM -0500, Richard B. Johnson wrote: Different configurations are handled with different .config files. And different .config files results in different kernels. Please note that .config files are also located in OBJTREE. Cosider something like the following:

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Sam Ravnborg
On Tue, Nov 19, 2002 at 02:48:09PM -0600, Kai Germaschewski wrote: Wrt the original patch, I like it, one preliminary comment is that I think symlinks are nicer than copying. They are faster, shouldn't cause any trouble on NFS, make uses stat and not lstat, so it gets the timestamps right,

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Richard B. Johnson
On Tue, 19 Nov 2002, Sam Ravnborg wrote: Based on some initial work by Kai Germaschewski I have made a working prototype of separate obj/src tree. Usage example: #src located in ~/bk/linux-2.5.sepobj mkdir ~/compile/v2.5 cd ~/compile/v2.5 sh ../../kb/v2.5/kbuild [SNIPPED...] I have a

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Richard B. Johnson
On Tue, 19 Nov 2002, Sam Ravnborg wrote: On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: I have a question; What problem is this supposed to solve? Two problems (at least): 1) You want to compile your kernel based on two different configurations, but sharing the same

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Kai Germaschewski
On Tue, 19 Nov 2002, Larry McVoy wrote: On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: On Tue, 19 Nov 2002, Sam Ravnborg wrote: Based on some initial work by Kai Germaschewski I have made a working prototype of separate obj/src tree. Usage example: #src

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Nov 2002 07:54, Sam Ravnborg wrote: But my point is that there is a good use of different configurations based on the same src. I think that your example for testing is the most valid one. In development, you normally have different

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Daniel Jacobowitz
On Tue, Nov 19, 2002 at 03:46:28PM -0500, Richard B. Johnson wrote: On Tue, 19 Nov 2002, Sam Ravnborg wrote: On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: I have a question; What problem is this supposed to solve? Two problems (at least): 1) You want to

[kbuild-devel] Re: [RFC/CFT] Separate obj/src dir

2002-11-19 Thread Geert Uytterhoeven
On Tue, 19 Nov 2002, Daniel Jacobowitz wrote: On Tue, Nov 19, 2002 at 03:46:28PM -0500, Richard B. Johnson wrote: On Tue, 19 Nov 2002, Sam Ravnborg wrote: On Tue, Nov 19, 2002 at 03:22:45PM -0500, Richard B. Johnson wrote: I have a question; What problem is this supposed to solve?