diff options
author | Rod Whitby <rod@whitby.id.au> | 2005-08-11 11:26:15 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-11 11:26:15 +0000 |
commit | 1a8447cc2198d81d71b1758a18da50dd6e823f28 (patch) | |
tree | 8a1e2757a7b04c54ba50c83de923b57b66c4b462 /packages/linux/unslung-kernel_2.4.22.l2.3r63.bb | |
parent | f4f64f2ea3904aa9c38e38ab119181331a022c33 (diff) |
Added the unslung OVERRIDE for unslung-binary-kernel distro
Diffstat (limited to 'packages/linux/unslung-kernel_2.4.22.l2.3r63.bb')
-rw-r--r-- | packages/linux/unslung-kernel_2.4.22.l2.3r63.bb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/packages/linux/unslung-kernel_2.4.22.l2.3r63.bb b/packages/linux/unslung-kernel_2.4.22.l2.3r63.bb index 858af69eb0..2a61d61307 100644 --- a/packages/linux/unslung-kernel_2.4.22.l2.3r63.bb +++ b/packages/linux/unslung-kernel_2.4.22.l2.3r63.bb @@ -1,10 +1,8 @@ -DEFAULT_PREFERENCE_unslung = "-1" - SECTION = "kernel" DESCRIPTION = "Unslung kernel for the Linksys NSLU2 device" LICENSE = "GPL" MAINTAINER = "NSLU2 Linux <www.nlsu2-linux.org>" -PR = "r0" +PR = "r1" S = "${WORKDIR}/linux-2.4.22" @@ -16,12 +14,10 @@ DEPENDS += "nslu2-linksys-firmware" 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': + if mach != 'nslu2': raise bb.parse.SkipPackage("Unslung only builds for the Linksys NSLU2") } - do_deploy() { cp ${STAGING_LIBDIR}/nslu2-binaries/vmlinuz vmlinuz dd if=vmlinuz bs=1 count=11732 > vmlinuh @@ -30,13 +26,13 @@ do_deploy() { cat vmlinux | sed \ -e 's/ram0/slug/' \ -e 's/\x01\x31\x2c\xff/\x00\x1e\x84\x7f/' \ - -e 's/flash_sda\x00/hdd_sda\x00\x00\x00/' \ - -e 's/flash_\x00/hdd_\x00\x00\x00/' \ - -e 's/flash_sd%c\x00/hdd_sd%c\x00\x00\x00/' \ | gzip -9 -c > vmlinux.gz -# cat vmlinuh vmlinux.gz vmlinut > vmlinuz - dd if=/dev/zero of=padding bs=1 count=9 - cat vmlinuh vmlinux.gz padding vmlinut > vmlinuz +# -e 's/flash_sda\x00/hdd_sda\x00\x00\x00/' \ +# -e 's/flash_\x00/hdd_\x00\x00\x00/' \ +# -e 's/flash_sd%c\x00/hdd_sd%c\x00\x00\x00/' \ + cat vmlinuh vmlinux.gz vmlinut > vmlinuz +# dd if=/dev/zero of=padding bs=1 count=9 +# cat vmlinuh vmlinux.gz padding vmlinut > vmlinuz install -d ${DEPLOY_DIR}/images install -m 0644 vmlinuz ${DEPLOY_DIR}/images/${KERNEL_IMAGETYPE}-${KERNEL_SUFFIX} } |