base = pv[0]
name = [base]
major = '.'.join(name[0].split('.')[0:2])
+ minor = '.'.join(name[0].split('.')[0:3])
patch_uri = [ None ]
filedir = "${FILE_DIRNAME}/nslu2-kernel/%s"
- # This entry will become the last one (everything is insertd before it)
+ # This entry will become the last one (everything is inserted before it)
filepath = [ filedir % "files" ]
pref = 10
mmac = 0
base = '.'.join(kernel)
patch_uri[0] = "ftp://ftp.kernel.org/pub/linux/kernel/v%s/linux-%s.tar.bz2" % (major, base)
filepath[-1:-1] = [ filedir % base ]
+ if base != minor:
+ filepath[-1:-1] = [ filedir % minor ]
filepath[-1:-1] = [ filedir % major ]
bb.data.setVar("N2K_SRCMAJ", major, d)
--- /dev/null
+# Kernel for NSLU2
+PR = r0
+include nslu2-kernel.inc
+
+# N2K_EXTRA_PATCHES - list of patches to apply (can include
+# patches to the files installed above)
+# N2K_PATCHES - full list of patches to apply, defaults to:
+# file://nslu2_2.6.11.patch;patch=1
+# file://usbnet.patch;patch=1
+# file://ixp4xx_copy_from.patch;patch=1
+# ${N2K_EXTRA_PATCHES}
+#
+
+N2K_PATCHES = "\
+ file://nslu2-arch.patch;patch=1 \
+ file://x1205-rtc.patch;patch=1 \
+ file://ixp4xx-regs.patch;patch=1 \
+ file://compile-switches.patch;patch=1 \
+ file://ixp4xx_copy_from.patch;patch=1 \
+ file://anonymiser.patch;patch=1 \
+ file://xscale-reset.patch;patch=1 \
+ file://x1205-rtc.c-id.patch;patch=1 \
+"