[OpenWrt-Users] how are the kernel patches grouped and applied?

Robert P. J. Day rpjday at crashcourse.ca
Fri Mar 21 21:05:06 CET 2008


  for the first time, i took a quick look at the various directories
of kernel patches and i'm a bit confused as to how and in what order
they're applied.

  first, for the 2.6 kernel, i see these directories:

$ ls -d -1 generic-2.6/patches*
generic-2.6/patches
generic-2.6/patches-2.6.22
generic-2.6/patches-2.6.23
generic-2.6/patches-2.6.24
$

  my first impression was that the plain "patches" directory would be
applied to a 2.6 kernel tree, followed by the more version-specific
directory.  but that's not what it looks like -- it looks like the
version-specific patch directory *overrides* the plain one.  is that
the case?  in which case, what's the purpose of that plain directory
in the first place?

  and, after that, i'm guessing that that patching would be followed
by the target-specific directory -- in my case,
brcm47xx/patches-2.6.23 if i'm using a 2.6.23 kernel, is that correct?

  i'm asking since i'd like to try to build a 2.6.24 kernel for this
target, so i'm guessing that i could retain all the patches under
generic-2.6, and just rebase the target-specific ones, does that sound
right?  thanks.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================


More information about the openwrt-users mailing list