Fedora no longer installs the source for its installations so if you need to rebuild the kernel you will need to get the source the easiest way is as follows:
- up2date –get-source kernel
- Install kernel-
.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/) [NOTE: if this fails you should find the kernel src rpm from your up2date and download it manually and then use rpm -i ] - Change directory to /usr/src/redhat/SPECS/, and issue the following command: rpmbuild -bp –target=
kernel.spec (Where target is the desired target architecture.) - On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
In resulting tree, the configurations for the specific kernels shipped in Fedora Core 3 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel--i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building: - cp
./.config - Issue the following command: make oldconfig if you want to use the oldconfig or make menuconfig if you want to put in new stuff
- Change directory to /usr/src/redhat/SPECS/, and issue the following command: rpmbuild -bp –target=
then read the readme.txt file which comes with Fedora for building but normally do the following
- make
- make modules_install install
this now updates grub (if your using it) automatically