summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2005-08-11 10:12:01 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-11 10:12:01 +0000
commit5db530540a094f96b52245c5896ef40009e6db6b (patch)
tree1602c06c10520ea48fe30810dee4a710976ba9fd /classes
parent98318c22a913b1500564268e3c499dc57cc036e0 (diff)
parenta126be07197df04761fed6c61d708ff10c8c434c (diff)
merge of 0bfafb15be028004cf9117bd99c73c9f7ee1b3c8
and 154b18293551ae7140a0552c72791f095d1f3f69
Diffstat (limited to 'classes')
-rw-r--r--classes/nslu2-jffs2-image.bbclass (renamed from classes/nslu2_flashimg.bbclass)0
-rw-r--r--classes/nslu2-ramdisk-image.bbclass18
2 files changed, 18 insertions, 0 deletions
diff --git a/classes/nslu2_flashimg.bbclass b/classes/nslu2-jffs2-image.bbclass
index 56ad0f0659..56ad0f0659 100644
--- a/classes/nslu2_flashimg.bbclass
+++ b/classes/nslu2-jffs2-image.bbclass
diff --git a/classes/nslu2-ramdisk-image.bbclass b/classes/nslu2-ramdisk-image.bbclass
new file mode 100644
index 0000000000..0b545854fd
--- /dev/null
+++ b/classes/nslu2-ramdisk-image.bbclass
@@ -0,0 +1,18 @@
+NSLU2_SLUGIMAGE_ARGS ?= ""
+
+nslu2_pack_image () {
+ install -d ${DEPLOY_DIR_IMAGE}/slug
+ install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
+ ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
+ ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
+ ${DEPLOY_DIR_IMAGE}/slug/
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.ext2.gz
+ cd ${DEPLOY_DIR_IMAGE}/slug
+ slugimage -p -b RedBoot -s SysConf -r Ramdisk:ramdisk.ext2.gz -t Trailer \
+ -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ramdisk.img ${NSLU2_SLUGIMAGE_ARGS}
+ rm -rf ${DEPLOY_DIR_IMAGE}/slug
+}
+
+EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware'
+IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "