Wednesday, July 9, 2008

Building linux kernel source for fedora

As fedora installation doesn't come with the kernel source, for kernel hackers source is a must and below are the steps to compile the kernel source
  • Download the corresponding kernel.src.rpm file from www.sourceforge.com

  • # rpm –ivh kernel-2.6.10-1.741.src.rpm

  • # rpmbuild –bp –target=norarch /usr/src/redhat/SPECS/kernel-2.6.spec

  • cd /usr/src

  • ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux

  • ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux-2.6.10

  • cd /linux-2.6.17.7

  • make mrproper

No comments: