diff options
Diffstat (limited to 'classes/nslu2_flashimg.bbclass')
-rw-r--r-- | classes/nslu2_flashimg.bbclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/classes/nslu2_flashimg.bbclass b/classes/nslu2_flashimg.bbclass index dacf6e66d5..ddb9b5e8cf 100644 --- a/classes/nslu2_flashimg.bbclass +++ b/classes/nslu2_flashimg.bbclass @@ -1,3 +1,5 @@ +NSLU2_SLUGIMAGE_ARGS ?= "" + nslu2_pack_image () { install -d ${DEPLOY_DIR_IMAGE}/slug install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \ @@ -6,6 +8,9 @@ nslu2_pack_image () { ${STAGING_LIBDIR}/nslu2-binaries/switchbox.ext2.gz \ ${DEPLOY_DIR_IMAGE}/slug/ install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz + if [ -f ${DEPLOY_DIR_IMAGE}/payload.tar.gz ] ; then + install -m 0644 ${DEPLOY_DIR_IMAGE}/payload.tar.gz ${DEPLOY_DIR_IMAGE}/slug/payload.tar.gz + fi if [ "${NSLU2_BUILD_RAMDISK_FIRMWARE}" == "1" ] ; then install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.ext2.gz fi @@ -13,10 +18,10 @@ nslu2_pack_image () { cd ${DEPLOY_DIR_IMAGE}/slug if [ "${NSLU2_BUILD_RAMDISK_FIRMWARE}" == "1" ] ; then slugimage -p -b RedBoot -s SysConf -r Ramdisk:ramdisk.ext2.gz -t Trailer \ - -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ramdisk.img + -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ramdisk.img ${NSLU2_SLUGIMAGE_ARGS} fi slugimage -p -b RedBoot -s SysConf -r Ramdisk:switchbox.ext2.gz,Flashdisk:flashdisk.jffs2 -t Trailer \ - -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img + -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img ${NSLU2_SLUGIMAGE_ARGS} rm -rf ${DEPLOY_DIR_IMAGE}/slug } |