summaryrefslogtreecommitdiff
path: root/classes/nslu2-image.bbclass
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2007-02-15 04:38:52 +0000
committerRod Whitby <rod@whitby.id.au>2007-02-15 04:38:52 +0000
commit81b217518bd5049e4c6697d47f1600aab8639e56 (patch)
treeedd0430724a1d81c2bb27d2ca5e6ad02db31be2d /classes/nslu2-image.bbclass
parent3d7e7c742cfee803d94dfaea8c1cff48b5ad67f9 (diff)
slugos, unslung: Moved unslung image building into unslung-image, and split nslu2, nas100d and dsmg600 image building out into classes so they can be reused with multiple distros (like SlugOS and Angstrom)
Diffstat (limited to 'classes/nslu2-image.bbclass')
-rw-r--r--classes/nslu2-image.bbclass20
1 files changed, 20 insertions, 0 deletions
diff --git a/classes/nslu2-image.bbclass b/classes/nslu2-image.bbclass
new file mode 100644
index 0000000000..e1af34fa57
--- /dev/null
+++ b/classes/nslu2-image.bbclass
@@ -0,0 +1,20 @@
+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-nslu2${SITEINFO_ENDIANESS} \
+ ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
+ ${DEPLOY_DIR_IMAGE}/slug/flashdisk.jffs2
+ install -m 0644 ${STAGING_FIRMWARE_DIR}/NPE-B ${DEPLOY_DIR_IMAGE}/slug/
+ cd ${DEPLOY_DIR_IMAGE}/slug
+ slugimage -p -b RedBoot -s SysConf -k vmlinuz \
+ -r Ramdisk:1,Flashdisk:flashdisk.jffs2 -m NPE-B -t Trailer \
+ -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-nslu2.bin
+ rm -rf ${DEPLOY_DIR_IMAGE}/slug
+}
+
+EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware ixp4xx-npe upslug2-native'
+IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "