Recompile kernel without SMP

stan gryt2 at q.com
Tue Aug 18 02:19:44 UTC 2009


On Fri, 14 Aug 2009 12:37:10 -0400
"Paul Grinberg" <pgrinberg at nyc.saic.com> wrote:

> Hi there,
> 
> I am trying to recompile kernel without SMP. So far I've been
> unsuccessful. Meaning I am able to compile, but it was still SMP..
> 
> Can someone tell me what I am doing wrong?


> cp .config ~/rpmbuild/SOURCES/config-i686-generic
> cp .config ~/rpmbuild/SOURCES/config-i686

The only valid target for i686 is config-i686-PAE.
Look in the ~/rpmbuild/SPECS/kernel.spec file (search
for Source32), or ls ~/rpmbuild/SOURCE/config* before 
you copy anything to it to see the list of valid values.

Because the two config names you are using aren't valid in the spec
file, they are being ignored and the generic Fedora kernel is being
built.

> # Create RPM package
> rpmbuild -bb --with firmware --target=i686 kernel.spec
 
See the link 
http://fedoraproject.org/wiki/Building_a_custom_kernel
for a better command.

rpmbuild -bb --with baseonly --with firmware --without debuginfo --target=`uname -m` kernel.spec

This should build headers for you.




More information about the fedora-list mailing list