From 4b9805cba53ee926fbc9b3b72901b15d72982af0 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Sat, 18 Sep 2004 18:20:23 +0000 Subject: Merge 2004/09/19 00:03:51+09:30 (none)!rwhitby Fixed the Redbook -> Redboot typo in slugtool, and made corresponding changes to the nslu2 firmware unpacking and packing procedures. BKrev: 414c7c67rQASFlywei1gQZEgaXh7iQ --- classes/nslu2_flashimg.oeclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'classes') diff --git a/classes/nslu2_flashimg.oeclass b/classes/nslu2_flashimg.oeclass index e69de29bb2..f6170b9b73 100644 --- a/classes/nslu2_flashimg.oeclass +++ b/classes/nslu2_flashimg.oeclass @@ -0,0 +1,16 @@ +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 ${STAGING_KERNEL_DIR}/zImage ${DEPLOY_DIR_IMAGE}/slug/vmlinuz + install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.gz + cd ${DEPLOY_DIR_IMAGE}/slug + slugtool pack ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.img + rm -f ${DEPLOY_DIR_IMAGE}/zImage* ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz + rm -rf ${DEPLOY_DIR_IMAGE}/slug +} + +EXTRA_IMAGEDEPENDS += 'slugtool-native nslu2-firmware-binary' +IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; " -- cgit v1.2.3