Recompile kernel without SMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux