Recompile kernel without SMP

Paul Grinberg pgrinberg at nyc.saic.com
Fri Aug 14 18:35:22 UTC 2009


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?
And why I don't get "kernel-headers" build?

It is probably related to spec parameters.... 

So far this is what I've done:

cd ~/
rpmdev-setuptree # as regular user
cd rmpbuild
yumdownloader --source kernel # as regular user

cd ~/rpmbuild/BUILD/kernel-2.6.29/linux-2.6.29.i686/
cp configs/kernel-2.6.29.6-i586.config .config
make menuconfig                 # console setup

Select option: Processor type and features.
Disable "Symmetric multi-processing support" (SMP)

cp .config ~/rpmbuild/SOURCES/config-i686-generic
cp .config ~/rpmbuild/SOURCES/config-i686
cd ~/rpmbuild/SPECS
nano kernel.spec
Add line:
% define buildid .NONSMP
Replace:

# Allow kernel-firmware building
#%define with_firmware  %{?_with_firmware:  1} %{?!_with_firmware:  0}
%define with_firmware  %{?_with_firmware:  0} %{?!_with_firmware:  1}

#%define with_firmware  %{?_without_firmware:  0} %{?!_without_firmware:
1}
%define with_firmware  %{?_without_firmware:  1} %{?!_without_firmware:
0}

# Allow kernel-headers building

# Allow kernel-devel building

# Create RPM package
rpmbuild -bb --with firmware --target=i686 kernel.spec

# To actually install kernel
su
rpm -ivh kernel-firmware-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
kernel-PAE-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm
kernel-PAE-devel-2.6.29.6-217.2.3.nonsmp.fc11.i686.rpm



Just in case:
$ cat config-i686-PAE | egrep -i "smp" | more
CONFIG_BROKEN_ON_SMP=y
# CONFIG_SMP is not set
CONFIG_X86_FIND_SMP_CONFIG=y
# CONFIG_X86_VSMP is not set
CONFIG_SCSI_SAS_HOST_SMP=y
CONFIG_VIDEO_VP27SMPX=m





Best,
Paul





More information about the Fedora-kernel-list mailing list