summaryrefslogtreecommitdiff
path: root/classes/nylon-image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/nylon-image.bbclass')
-rw-r--r--classes/nylon-image.bbclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/classes/nylon-image.bbclass b/classes/nylon-image.bbclass
index 8517c033e9..e24aa33cf4 100644
--- a/classes/nylon-image.bbclass
+++ b/classes/nylon-image.bbclass
@@ -1,5 +1,5 @@
# we dont need the kernel in the image
-ROOTFS_POSTPROCESS_COMMAND = "rm -f ${IMAGE_ROOTFS}/tmp/zImage*"
+ROOTFS_POSTPROCESS_COMMAND = "rm -f ${IMAGE_ROOTFS}/tmp/*Image*"
# create a tar.gz (.imgz) file containing the filesystem and the kernel
nylon_create_imgz() {
@@ -7,8 +7,15 @@ nylon_create_imgz() {
rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz
install -d ${DEPLOY_DIR_IMAGE}/tmp
- cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.bin ${DEPLOY_DIR_IMAGE}/tmp/zImage.flash
+ # copy the kernel (for mips on flash) into tmp
+ FLASH_BIN=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.bin
+ test -f ${FLASH_BIN} && \
+ cp ${FLASH_BIN} ${DEPLOY_DIR_IMAGE}/tmp/zImage.flash
+
+ # copy rootfs.jffs (or so) into tmp
cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/tmp/rootfs.${type}
+
+ # make an imgz out of tmp
( cd ${DEPLOY_DIR_IMAGE}/tmp; tar cvzf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz * )
rm -r ${DEPLOY_DIR_IMAGE}/tmp
}