Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread Roland McGrath
> Ooh, I like it... Along those lines, what if we had Makefile include a > Makefile.local if it existed, which was .cvsignore'd? Then you could > tweak your local default build prefs to your hearts content without > having to worry about accidentally committing them... Actually you can write yo

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread Jarod Wilson
David Woodhouse wrote: On Fri, 2007-03-30 at 21:20 -0400, Jarod Wilson wrote: Hrm, not sure why that doesn't pass the option through, but I hadn't even thought to look at the Makefile to see how these flags would work at that level. Out of curiosity, does the following work?: $ make RPM_DEFIN

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread David Woodhouse
On Fri, 2007-03-30 at 21:20 -0400, Jarod Wilson wrote: > Hrm, not sure why that doesn't pass the option through, but I hadn't > even thought to look at the Makefile to see how these flags would work > at that level. Out of curiosity, does the following work?: > > $ make RPM_DEFINES="--define 'wi

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread Jarod Wilson
David Woodhouse wrote: On Fri, 2007-03-30 at 01:26 -0400, Jarod Wilson wrote: Turns out the complexity of adding --with/--without support only resulted in the on/off lines at the top of the spec being slightly longer, so one can now additionally pass in, say, --without xen, on the rpmbuild lin

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread David Woodhouse
On Fri, 2007-03-30 at 01:26 -0400, Jarod Wilson wrote: > Turns out the complexity of adding --with/--without support only > resulted in the on/off lines at the top of the spec being slightly > longer, so one can now additionally pass in, say, --without xen, on the > rpmbuild line to disable buil

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread Jarod Wilson
Chuck Ebbert wrote: > Jarod Wilson wrote: >> Chuck Ebbert wrote: >>> Jarod Wilson wrote: >>> The minimalist approach that comes to mind is to make all the %define build* bits all set to 1/enabled by default, and only flip them to disabled where appropriate, so they'd be equivalent

Re: Needed: An easier way to build a subset of kernel packages

2007-03-30 Thread Chuck Ebbert
Jarod Wilson wrote: > Chuck Ebbert wrote: >> Jarod Wilson wrote: >> >>> The minimalist approach that comes to mind is to make all the %define >>> build* bits all set to 1/enabled by default, and only flip them to >>> disabled where appropriate, so they'd be equivalent to your allow* idea, >>> in

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Jarod Wilson
Chuck Ebbert wrote: Jarod Wilson wrote: The minimalist approach that comes to mind is to make all the %define build* bits all set to 1/enabled by default, and only flip them to disabled where appropriate, so they'd be equivalent to your allow* idea, in that if you disable them at the top of t

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Chuck Ebbert
Jarod Wilson wrote: > > The minimalist approach that comes to mind is to make all the %define > build* bits all set to 1/enabled by default, and only flip them to > disabled where appropriate, so they'd be equivalent to your allow* idea, > in that if you disable them at the top of the spec, they'd

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Jarod Wilson
Jarod Wilson wrote: > Chuck Ebbert wrote: >> Jarod Wilson wrote: >>> Dave Jones wrote: On Thu, Mar 29, 2007 at 02:06:58PM -0400, Jarod Wilson wrote: > Dave Jones wrote: > > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: > > > I was thinking about adding someth

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Jarod Wilson
Chuck Ebbert wrote: > Jarod Wilson wrote: >> Dave Jones wrote: >>> On Thu, Mar 29, 2007 at 02:06:58PM -0400, Jarod Wilson wrote: >>> > Dave Jones wrote: >>> > > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: >>> > > > I was thinking about adding something like this to the .spec f

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Chuck Ebbert
Jarod Wilson wrote: > Dave Jones wrote: >> On Thu, Mar 29, 2007 at 02:06:58PM -0400, Jarod Wilson wrote: >> > Dave Jones wrote: >> > > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: >> > > > I was thinking about adding something like this to the .spec file >> > > > at the begin

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Jarod Wilson
Dave Jones wrote: > On Thu, Mar 29, 2007 at 02:06:58PM -0400, Jarod Wilson wrote: > > Dave Jones wrote: > > > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: > > > > I was thinking about adding something like this to the .spec file > > > > at the beginning: > > > > > > > >

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Dave Jones
On Thu, Mar 29, 2007 at 02:06:58PM -0400, Jarod Wilson wrote: > Dave Jones wrote: > > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: > > > I was thinking about adding something like this to the .spec file > > > at the beginning: > > > > > > %define allowup 1 > > > %defin

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Jarod Wilson
Dave Jones wrote: > On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: > > I was thinking about adding something like this to the .spec file > > at the beginning: > > > > %define allowup 1 > > %define allowsmp 1 > > %define allowpae 1 > > %define allowxen 1 > > %define allowdoc

Re: Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Dave Jones
On Thu, Mar 29, 2007 at 01:41:45PM -0400, Chuck Ebbert wrote: > I was thinking about adding something like this to the .spec file > at the beginning: > > %define allowup 1 > %define allowsmp 1 > %define allowpae 1 > %define allowxen 1 > %define allowdoc 1 > %define allowdump 1 > %define

Needed: An easier way to build a subset of kernel packages

2007-03-29 Thread Chuck Ebbert
I was thinking about adding something like this to the .spec file at the beginning: %define allowup 1 %define allowsmp 1 %define allowpae 1 %define allowxen 1 %define allowdoc 1 %define allowdump 1 %define allowheaders 1 %define allowdebug 1 Then, after all the automatic enable/disable of various