On Tue, 30 Nov 2004, Tony Denault wrote: > > I needed to recompile the kernel for an inhouse development project. > Following the threads _almost_ told me what to do. I'll posted > how I got the kernel source install, compile and running > reference. Or please correct any error....thanks, > > Download,install & compile kernel source. > Example using kernel version 2.6.9-1.681_FC3 for Fedora Core3. > > Following the direction in the release notes for getting source tree: > > # rpm -ivh kernel-2.6.9-1.681_FC3.src.rpm > # cd /usr/src/redhat/SPECS > # rpmbuild -bp --target=i686 kernel-2.6.spec <-- slightly difference from the release notes > # cd /usr/src/redhat/BUILD > Kernel soures is located in /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ > Copy the tree to /usr/src/linux-2.6.x This is to get the prepatched sources equivalent to the old kernel-source.rpm format. But to build the kernel - you just do: rpmbuild --rebuild --target=i686 kernel-2.6.9-1.681_FC3.src.rpm If you need to apply some extra patches - you do the following: 1. extract the srpm rpm -ivh kernel-2.6.9-1.681_FC3.src.rpm 2. place the additional patch in /usr/src/redhat/SOURCES 3. modify the kernel kernel-2.6.spec - and specify this patch 4. now rebuild the kernel with rpmbuild -ba --target=i686 kernel-2.6.spec The rebuild kernel.i686.rpm should be in /usr/src/redhat/RPMS/i686 Satish