summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/nslu2-ramdisk-image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/nslu2-ramdisk-image.bbclass
downloadpoky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/nslu2-ramdisk-image.bbclass')
-rw-r--r--openembedded/classes/nslu2-ramdisk-image.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/openembedded/classes/nslu2-ramdisk-image.bbclass b/openembedded/classes/nslu2-ramdisk-image.bbclass
new file mode 100644
index 0000000000..0b545854fd
--- /dev/null
+++ b/openembedded/classes/nslu2-ramdisk-image.bbclass
@@ -0,0 +1,18 @@
1NSLU2_SLUGIMAGE_ARGS ?= ""
2
3nslu2_pack_image () {
4 install -d ${DEPLOY_DIR_IMAGE}/slug
5 install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
6 ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
7 ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
8 ${DEPLOY_DIR_IMAGE}/slug/
9 install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
10 install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.ext2.gz
11 cd ${DEPLOY_DIR_IMAGE}/slug
12 slugimage -p -b RedBoot -s SysConf -r Ramdisk:ramdisk.ext2.gz -t Trailer \
13 -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ramdisk.img ${NSLU2_SLUGIMAGE_ARGS}
14 rm -rf ${DEPLOY_DIR_IMAGE}/slug
15}
16
17EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware'
18IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "