summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2012-01-12 11:13:31 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-17 14:53:01 +0000
commitd0687295456bcf240be657e6b5b508f718ca9ebd (patch)
tree013b63a4566d37eb887065cbab9ec6c48f2d28dc
parentef8171ecad2197d8b123712be36f6e03e8926e13 (diff)
downloadopenembedded-core-d0687295456bcf240be657e6b5b508f718ca9ebd.tar.gz
openembedded-core-d0687295456bcf240be657e6b5b508f718ca9ebd.tar.bz2
openembedded-core-d0687295456bcf240be657e6b5b508f718ca9ebd.tar.xz
openembedded-core-d0687295456bcf240be657e6b5b508f718ca9ebd.zip
image_types.bbclass: Fix generating uncompressed ext2 images
Signed-off-by: Matthew McClintock <msm@freescale.com>
-rw-r--r--meta/classes/image_types.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 301054980..4908ed99b 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -40,7 +40,12 @@ IMAGE_CMD_sum.jffs2 = "${IMAGE_CMD_jffs2} && sumtool -i ${DEPLOY_DIR_IMAGE}/${IM
IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
-IMAGE_CMD_ext2 = "genext2fs -b $ROOTFS_SIZE -i 4096 -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2"
+IMAGE_CMD_ext2 () {
+ rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN} && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}
+ genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}/${IMAGE_NAME}.rootfs.ext2
+ mv ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}/${IMAGE_NAME}.rootfs.ext2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2
+ rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}
+}
IMAGE_CMD_ext2.gz () {
rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN} && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}
genext2fs -b $ROOTFS_SIZE -i 4096 -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}/${IMAGE_NAME}.rootfs.ext2