Real kernel compilation for fedora

Discussion in 'Suggest HOWTO' started by markg85, Jul 4, 2007.

  1. markg85

    markg85 New Member

    Hey,

    Falko has written this document: http://www.howtoforge.com/kernel_compilation_fedora
    and i really like it but it's not the real fedora way.
    with that documentation you still have to manually edit grub and you still have to do mkinitrd. So my request is a new document that does it exactly the fedora way so that you end with a kernel rpm that does the grub and mkinitrd for you.

    i think it would be best to edit that document with something like: go to page # for manual stuff (mkinitrd, grub) or go to page # to create a kernel rpm (with mkinitrd and grub in it).

    Mark.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do you have some instructions how this works?
     
  3. markg85

    markg85 New Member

    actually i have :) just got it from a reply on the fedora-devel-list.

    Here is sopme official documentation but i find that incomplete:
    http://docs.fedoraproject.org/release-notes/fc6/en_US/sn-Kernel.html

    The thing that one reply suggests is doing:
    where "that page" is your howto for the kernel compilation.

    I think the best thing you can do is extract the rpm, than extract the kernel source than edit the kernel to your own wishes (make menuconfig) than save it and make the compressed archive again. than you can do:

    rpmbuild -ba --target $(uname -m) kernel-2.6.spec

    to make the kernel but be aware that some patches might overwrite your changes.
    hope this helps
     
  4. falko

    falko Super Moderator Howtoforge Staff

    So if I understand you right, instead of

    Code:
    rpmbuild -b[B][COLOR="Red"]p[/COLOR][/B] --target=i686 kernel-2.6.spec
    I'd run

    Code:
    rpmbuild -b[B][COLOR="Red"]a[/COLOR][/B] --target=i686 kernel-2.6.spec
    and wouldn't have to worry about the Ramdisk and GRUB anymore? Is that the only difference?
     
  5. markg85

    markg85 New Member

    Sorry for the late reply.

    Yes. if you do that than you don't have to worry about that ramdisk and grub. Compiling has to be done either way so better do it that way :) saves you time for when you want to install the kernel.
     

Share This Page