[OE-core] [PATCH 2/2] image_types.bbclass: disable cleanmarkers for jffs2 images

Tom Rini tom.rini at gmail.com
Thu Dec 8 14:59:54 UTC 2011


On Tue, Dec 6, 2011 at 4:23 PM, Andrea Adami <andrea.adami at gmail.com> wrote:
> * Add '-n' to suppress cleanmarker nodes since jffs2
> * is usually used for NAND flash and the cleanmarkers are created in
> * the OOB area by flash_eraseall -j
> *
> * From man pages: -n, --no-cleanmarkers
> * Do not write cleanmarker nodes to the beginning of each erase block.
> * This option can be useful for creating JFFS2 images for use on NAND flash,
> * and for creating images which are to be used on a variety of hardware with differing eraseblock sizes.
>
> Signed-off-by: Andrea Adami <andrea.adami at gmail.com>

Acked-by: Tom Rini <tom.rini at gmail.com>

> ---
>  meta/classes/image_types.bbclass |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
> index bd4b7bc..489fbe1 100644
> --- a/meta/classes/image_types.bbclass
> +++ b/meta/classes/image_types.bbclass
> @@ -34,9 +34,9 @@ runimagecmd () {
>  XZ_COMPRESSION_LEVEL ?= "-e -9"
>  XZ_INTEGRITY_CHECK ?= "crc32"
>
> -IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}"
> +IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 -n ${EXTRA_IMAGECMD}"
>  IMAGE_CMD_sum.jffs2 = "${IMAGE_CMD_jffs2} && sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
> -       -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sum.jffs2 ${EXTRA_IMAGECMD}"
> +       -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sum.jffs2 -n ${EXTRA_IMAGECMD}"
>
>  IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
>
> --
> 1.7.3.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



-- 
Tom




More information about the Openembedded-core mailing list