diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2011-12-07 00:23:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-08 15:24:26 +0000 |
commit | 5e6261decb4aba6d8c703e24b59345eafa686793 (patch) | |
tree | a10c63eae7913a583c4ad5302ceabd78c566c39b /meta/classes | |
parent | 64ee1e6e71a9e5a743ea0e597b990bb6c3e69d85 (diff) | |
download | poky-5e6261decb4aba6d8c703e24b59345eafa686793.tar.gz |
image_types.bbclass: implement jffs2 summary images (sum.jffs2)
* Building the jffs2 filesystem to include summary information speeds up
* the mount process considerably at the cost of increased size.
* The rate of speedup is generally higher on NAND chips and on the chips
* where the erase block size is large.
(From OE-Core rev: 2cb6a0d7aaa1ba712a899ee77a4c720da4e50214)
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 29b63806e6..bd4b7bcf4c 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -35,6 +35,8 @@ XZ_COMPRESSION_LEVEL ?= "-e -9" | |||
35 | XZ_INTEGRITY_CHECK ?= "crc32" | 35 | XZ_INTEGRITY_CHECK ?= "crc32" |
36 | 36 | ||
37 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}" | 37 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}" |
38 | IMAGE_CMD_sum.jffs2 = "${IMAGE_CMD_jffs2} && sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ | ||
39 | -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sum.jffs2 ${EXTRA_IMAGECMD}" | ||
38 | 40 | ||
39 | IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}" | 41 | IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}" |
40 | 42 | ||
@@ -138,6 +140,7 @@ EXTRA_IMAGECMD_btrfs ?= "" | |||
138 | 140 | ||
139 | IMAGE_DEPENDS = "" | 141 | IMAGE_DEPENDS = "" |
140 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" | 142 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" |
143 | IMAGE_DEPENDS_sum.jffs2 = "mtd-utils-native" | ||
141 | IMAGE_DEPENDS_cramfs = "cramfs-native" | 144 | IMAGE_DEPENDS_cramfs = "cramfs-native" |
142 | IMAGE_DEPENDS_ext2 = "genext2fs-native" | 145 | IMAGE_DEPENDS_ext2 = "genext2fs-native" |
143 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" | 146 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" |
@@ -157,4 +160,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native" | |||
157 | IMAGE_DEPENDS_ubifs = "mtd-utils-native" | 160 | IMAGE_DEPENDS_ubifs = "mtd-utils-native" |
158 | 161 | ||
159 | # This variable is available to request which values are suitable for IMAGE_FSTYPES | 162 | # This variable is available to request which values are suitable for IMAGE_FSTYPES |
160 | IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma" | 163 | IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma" |