[Haifux] Kernel for Fedora: Repository or vanilla?

Tzafrir Cohen tzafrir at cohens.org.il
Mon Sep 20 14:30:11 MSD 2010

On Mon, Sep 20, 2010 at 12:00:39AM +0200, Oron Peled wrote:

> Oops, almost forgot. If you still want to compile your kernel. You may want
> to start with current Fedora kernel as a basis:
>   yum install rpmdevtools   # For the next utility
>   rpmdev-setuptree            # set up a empty packaging tree under ~/rpmbuild
>   # Let's download + expand the tree
>   yumdownloader --source kernel
>   rpm -ivh kernel-.....src.rpm
>   cd ~/rpmbuild/SPECS
>   rpmbuild -bp kernel.spec   # This is just the *prepare* build step
>   cd ~/rpmbuild/BUILD/kernel-2.6.3*
>   # You'll see two obvious directories: vanilla-2.6.x* and linux-2.6.3*
> If you want to see how many patches separate the vanilla from Fedora:
>   grep '^Patch[0-9]' ~rpmbuild/SPECS/kernel.spec | wc -l
> It should be only 100-150 patches. If it looks bad to you, reconsider.
> Distibutions that you wanted (3-5 years between major upgrades) have
> around 1K patches   :-O

One alternative to that is the target 'binrpm-pkg' for your own kernel

  make menuconfig # or oldconfig, whatever
  make binrpm-pkg

Anybody uses it?

Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend

More information about the Haifux mailing list