Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Jeff Dike
On Tue, Oct 09, 2007 at 06:34:35PM +0200, Sam Ravnborg wrote: > I actually used um as testing ground for this patch so > it works for um in my way of building um. Great, thanks. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Kristoffer Ericson
On Mon, 8 Oct 2007 22:02:55 +0200 Sam Ravnborg <[EMAIL PROTECTED]> wrote: > One of the complaints that I continue to hear is that kbuild > is lacking a way to 'remember' the ARCH and CROSS_COMPILE > values originally used. > Likewise we have people that change ARCH settings and get > a lot of

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 10:09:06AM -0400, Jeff Dike wrote: > On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: > > If it is OK to drop the $(SUBARCH) assingment like this then yes. > > ARCH?= > > CROSS_COMPILE ?= > > Does the UML build still work when you do

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Jeff Dike
On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: > If it is OK to drop the $(SUBARCH) assingment like this then yes. > ARCH ?= > CROSS_COMPILE ?= Does the UML build still work when you do that? Jeff -- Work email - jdike at linux dot intel

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Andi Kleen
On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: > On Tue, Oct 09, 2007 at 11:39:21AM +0200, Andi Kleen wrote: > > Sam Ravnborg <[EMAIL PROTECTED]> writes: > > > > > > -ARCH ?= $(SUBARCH) > > > -CROSS_COMPILE?= > > > > Can you do this in a way that there are still

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 11:39:21AM +0200, Andi Kleen wrote: > Sam Ravnborg <[EMAIL PROTECTED]> writes: > > > > -ARCH ?= $(SUBARCH) > > -CROSS_COMPILE ?= > > Can you do this in a way that there are still these ARCH/CROSS_COMPILE > lines that are just overriden when empty or

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Adrian Bunk
On Tue, Oct 09, 2007 at 08:03:33AM +0200, Sam Ravnborg wrote: > On Mon, Oct 08, 2007 at 11:12:56PM +0200, Adrian Bunk wrote: >... > > BTW: I'm currently trying without success to understand why the > > drivers/infiniband/{hw/amso1100,ulp/srp}/Kbuild files are not > > named "Makefile". >

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Andi Kleen
Sam Ravnborg <[EMAIL PROTECTED]> writes: > > -ARCH ?= $(SUBARCH) > -CROSS_COMPILE?= Can you do this in a way that there are still these ARCH/CROSS_COMPILE lines that are just overriden when empty or have their default value? This way defaults could be still patched in for

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Oleg Verych
On Tue, Oct 09, 2007 at 06:17:43AM +0200, Sam Ravnborg wrote: > > > > What about, that this is the first ever prompt, that must be shown and > > written to the .config? > Two issues to fix before we can do this: > 1) chocie values cannot have more than one prompt what occupying all my time now

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Mon, Oct 08, 2007 at 11:12:56PM +0200, Adrian Bunk wrote: > On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: > >... > > The settings are stored in the build directory in a file > > named "Kbuild.config" (should it be a .dot file?). > >... > > A .dot file sounds better. I will make

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
> > 2) We need to share much more Kconfig* between the individual architectures > >First step is to let all arch's use drivers/Kconfig > > 2) isn't terribly difficult, just takes some time and willingness > of $arch maintainers to some changes, but please explain a bit more > why it is

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
2) We need to share much more Kconfig* between the individual architectures First step is to let all arch's use drivers/Kconfig 2) isn't terribly difficult, just takes some time and willingness of $arch maintainers to some changes, but please explain a bit more why it is needed...? A

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Mon, Oct 08, 2007 at 11:12:56PM +0200, Adrian Bunk wrote: On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: ... The settings are stored in the build directory in a file named Kbuild.config (should it be a .dot file?). ... A .dot file sounds better. I will make it .kbuild.

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Oleg Verych
On Tue, Oct 09, 2007 at 06:17:43AM +0200, Sam Ravnborg wrote: What about, that this is the first ever prompt, that must be shown and written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more than one prompt what occupying all my time now is to try

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Andi Kleen
Sam Ravnborg [EMAIL PROTECTED] writes: -ARCH ?= $(SUBARCH) -CROSS_COMPILE?= Can you do this in a way that there are still these ARCH/CROSS_COMPILE lines that are just overriden when empty or have their default value? This way defaults could be still patched in for special

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Adrian Bunk
On Tue, Oct 09, 2007 at 08:03:33AM +0200, Sam Ravnborg wrote: On Mon, Oct 08, 2007 at 11:12:56PM +0200, Adrian Bunk wrote: ... BTW: I'm currently trying without success to understand why the drivers/infiniband/{hw/amso1100,ulp/srp}/Kbuild files are not named Makefile. Giacomo

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 11:39:21AM +0200, Andi Kleen wrote: Sam Ravnborg [EMAIL PROTECTED] writes: -ARCH ?= $(SUBARCH) -CROSS_COMPILE ?= Can you do this in a way that there are still these ARCH/CROSS_COMPILE lines that are just overriden when empty or have their

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Andi Kleen
On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: On Tue, Oct 09, 2007 at 11:39:21AM +0200, Andi Kleen wrote: Sam Ravnborg [EMAIL PROTECTED] writes: -ARCH ?= $(SUBARCH) -CROSS_COMPILE?= Can you do this in a way that there are still these

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Jeff Dike
On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: If it is OK to drop the $(SUBARCH) assingment like this then yes. ARCH ?= CROSS_COMPILE ?= Does the UML build still work when you do that? Jeff -- Work email - jdike at linux dot intel dot

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Sam Ravnborg
On Tue, Oct 09, 2007 at 10:09:06AM -0400, Jeff Dike wrote: On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: If it is OK to drop the $(SUBARCH) assingment like this then yes. ARCH?= CROSS_COMPILE ?= Does the UML build still work when you do that? The

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Kristoffer Ericson
On Mon, 8 Oct 2007 22:02:55 +0200 Sam Ravnborg [EMAIL PROTECTED] wrote: One of the complaints that I continue to hear is that kbuild is lacking a way to 'remember' the ARCH and CROSS_COMPILE values originally used. Likewise we have people that change ARCH settings and get a lot of build

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-09 Thread Jeff Dike
On Tue, Oct 09, 2007 at 06:34:35PM +0200, Sam Ravnborg wrote: I actually used um as testing ground for this patch so it works for um in my way of building um. Great, thanks. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Randy Dunlap
On Mon, 8 Oct 2007 21:53:16 -0700 Randy Dunlap wrote: > On Tue, 9 Oct 2007 06:17:43 +0200 Sam Ravnborg wrote: > > > > > > > What about, that this is the first ever prompt, that must be shown and > > > written to the .config? > > Two issues to fix before we can do this: > > 1) chocie values

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Randy Dunlap
On Tue, 9 Oct 2007 06:17:43 +0200 Sam Ravnborg wrote: > > > > What about, that this is the first ever prompt, that must be shown and > > written to the .config? > Two issues to fix before we can do this: > 1) chocie values cannot have more than one prompt > 2) We need to share much more Kconfig*

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
> > What about, that this is the first ever prompt, that must be shown and > written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more than one prompt 2) We need to share much more Kconfig* between the individual architectures First step is to let all

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Giacomo Catenazzi
Adrian Bunk wrote: > > BTW: I'm currently trying without success to understand why the > drivers/infiniband/{hw/amso1100,ulp/srp}/Kbuild files are not > named "Makefile". or the inverse ;-) Why all Makefiles (but the top level one ) are not named Kbuild, considering that they are not

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Adrian Bunk
On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: >... > The settings are stored in the build directory in a file > named "Kbuild.config" (should it be a .dot file?). >... A .dot file sounds better. And even if not, generated files should IMHO not share the Kbuild* namespace with

Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Oleg Verych
On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: > One of the complaints that I continue to hear is that kbuild > is lacking a way to 'remember' the ARCH and CROSS_COMPILE > values originally used. Yea, finally. What about, that this is the first ever prompt, that must be shown and

[RFC/RFT] kbuild: save ARCH & CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
One of the complaints that I continue to hear is that kbuild is lacking a way to 'remember' the ARCH and CROSS_COMPILE values originally used. Likewise we have people that change ARCH settings and get a lot of build errors due to asm symlink pointing at the wrong directory. This patch tries to

[RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
One of the complaints that I continue to hear is that kbuild is lacking a way to 'remember' the ARCH and CROSS_COMPILE values originally used. Likewise we have people that change ARCH settings and get a lot of build errors due to asm symlink pointing at the wrong directory. This patch tries to

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Oleg Verych
On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: One of the complaints that I continue to hear is that kbuild is lacking a way to 'remember' the ARCH and CROSS_COMPILE values originally used. Yea, finally. What about, that this is the first ever prompt, that must be shown and

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Adrian Bunk
On Mon, Oct 08, 2007 at 10:02:55PM +0200, Sam Ravnborg wrote: ... The settings are stored in the build directory in a file named Kbuild.config (should it be a .dot file?). ... A .dot file sounds better. And even if not, generated files should IMHO not share the Kbuild* namespace with

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Giacomo Catenazzi
Adrian Bunk wrote: BTW: I'm currently trying without success to understand why the drivers/infiniband/{hw/amso1100,ulp/srp}/Kbuild files are not named Makefile. or the inverse ;-) Why all Makefiles (but the top level one ) are not named Kbuild, considering that they are not valid

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Sam Ravnborg
What about, that this is the first ever prompt, that must be shown and written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more than one prompt 2) We need to share much more Kconfig* between the individual architectures First step is to let all

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Randy Dunlap
On Tue, 9 Oct 2007 06:17:43 +0200 Sam Ravnborg wrote: What about, that this is the first ever prompt, that must be shown and written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more than one prompt 2) We need to share much more Kconfig* between

Re: [RFC/RFT] kbuild: save ARCH CROSS_COMPILE

2007-10-08 Thread Randy Dunlap
On Mon, 8 Oct 2007 21:53:16 -0700 Randy Dunlap wrote: On Tue, 9 Oct 2007 06:17:43 +0200 Sam Ravnborg wrote: What about, that this is the first ever prompt, that must be shown and written to the .config? Two issues to fix before we can do this: 1) chocie values cannot have more