summaryrefslogtreecommitdiff
path: root/classes/nylon-image.bbclass
diff options
context:
space:
mode:
authorMatt Reimer <mattjreimer@gmail.com>2006-11-06 18:29:44 +0000
committerMatt Reimer <mattjreimer@gmail.com>2006-11-06 18:29:44 +0000
commit2b622239c20657486f9e84842fd392f0a03c4598 (patch)
tree6b0f2058023f53c03ef7a0419eb06af11e8ba47f /classes/nylon-image.bbclass
parent5f7acfb7fa919640d4b9e3a997ff4ddfc5a39569 (diff)
parente37ddf6842faf9b3421fa4ab688944a20f0bba94 (diff)
merge of '41daabd524e84d8b355abb1ef7c1d06479c25b7d'
and '749aa1340946e929e3de2422cb6c275ee1ae34ba'
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
}