[SPAM] Re: Kernel Rebuild Question

Alex Ackerman alex at darkhonor.com
Wed Jan 5 17:14:52 UTC 2005

> -----Original Message-----
> From: fedora-list-bounces at redhat.com [mailto:fedora-list-
> bounces at redhat.com] On Behalf Of Ernie McCracken
> Sent: Wednesday, January 05, 2005 11:56 AM
> To: fedora-list at redhat.com
> Subject: [SPAM] Re: Kernel Rebuild Question
> On Wed, Jan 05, 2005 at 11:40:58AM -0500, Alex Ackerman wrote:
> >    This is probably so easy it's embarrassing to ask, but I'm trying
> >    rebuild the kernel using the source rpm. I need the i686 kernel,
> not
> >    the i686 smp kernel.  I'm currently using:
> >
> >    $ rpmbuild --rebuild --target i686 kernel-2.6.x-x.x.src.rpm
> >
> >    What am I missing? It's taking WAY too long to rebuild the kernel
> >    (~1.5 - 2 hours) when it build both. I have a Centrino 1.7GHz
> with
> >    1GB ram. Hopefully, by only building 1 of the kernel rpm packages
> can
> >    speed up the process.  Thanks for your help.
> In the kernel-2.6.spec file, change the following line:
> %define buildsmp 1
> to
> %define buildsmp 0

Are you able to do it on the command line within the rpmbuild --rebuild
line? I'd need to automate the process and this would make things a lot
easier to deal with. I did see one example on the net where someone sent
a 'define' to the rebuild command for another rpm where they specified
the kernel version. Would a 'define' sent in on the command line
override a define in the spec file? For instance, if I typed:

rpmbuild --rebuild --target=i686 --define 'buildsmp 0'

Thanks for your help!


More information about the users mailing list