diff options
Diffstat (limited to 'packages/linux/unslung-standard-kernel_2.3r25.bb')
-rw-r--r-- | packages/linux/unslung-standard-kernel_2.3r25.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/linux/unslung-standard-kernel_2.3r25.bb b/packages/linux/unslung-standard-kernel_2.3r25.bb index e69de29bb2..e17d438ccc 100644 --- a/packages/linux/unslung-standard-kernel_2.3r25.bb +++ b/packages/linux/unslung-standard-kernel_2.3r25.bb @@ -0,0 +1,31 @@ +SECTION = "kernel" + +include nslu2-linksys-kernel_2.4.22.bb + +DESCRIPTION = "Unslung kernel for the Linksys NSLU2 device" +MAINTAINER = "NSLU2 Linux <www.nlsu2-linux.org>" +PR = "r6" + +UNSLUNG_VARIANT ?= "standard" +KERNEL_SUFFIX = "unslung-${UNSLUNG_VARIANT}" + +CMDLINE_ROOT = "root=/dev/slug initrd=0x01000000,10M mem=32M@0x00000000" + +UNSLUNG_KERNEL_EXTRA_SRC_URI ?= + +SRC_URI += "file://limit1gb.patch;patch=1 \ + file://gl811e.patch;patch=1 \ + file://ext3flash-on-disk1.patch;patch=1 \ + file://usbnet.patch;patch=1 \ + file://missing-usb-ioctls.patch;patch=1 \ + ${UNSLUNG_KERNEL_EXTRA_SRC_URI}" + +FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/unslung-kernel-${PV}/${UNSLUNG_VARIANT}', '${FILE_DIRNAME}/unslung-kernel-${PV}', '${FILE_DIRNAME}/nslu2-linksys-kernel-2.4.22', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" + +python () { + # Don't build unslung kernel unless we're targeting an nslu2 + mach = bb.data.getVar("MACHINE", d, 1) + dist = bb.data.getVar("DISTRO", d, 1) + if mach != 'nslu2' or dist != 'unslung': + raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2") +} |