]> code.ossystems Code Review - openembedded-core.git/commitdiff
image_types.bbclass: redefine EXTRA_IMAGECMD_jffs2 to leverage siteinfo
authorTing Liu <b28495@freescale.com>
Mon, 7 May 2012 04:44:29 +0000 (12:44 +0800)
committerScott Garman <scott.a.garman@intel.com>
Tue, 31 Jul 2012 22:07:19 +0000 (15:07 -0700)
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image_types.bbclass

index b590ae152b73bdb9138b8efe7aeadb6f125ce985..55f122eb8c8f06b8a4cf70766c7435763b65a5e2 100644 (file)
@@ -188,7 +188,12 @@ IMAGE_CMD_ubi () {
 IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}"
 
 EXTRA_IMAGECMD = ""
-EXTRA_IMAGECMD_jffs2 ?= "--pad --little-endian --eraseblock=0x40000"
+
+inherit siteinfo
+JFFS2_ENDIANNESS ?= "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--little-endian', '--big-endian', d)}"
+JFFS2_ERASEBLOCK ?= "0x40000"
+EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
+
 # Change these if you want default genext2fs behavior (i.e. create minimal inode number)
 EXTRA_IMAGECMD_ext2 ?= "-i 8192"
 EXTRA_IMAGECMD_ext3 ?= "-i 8192"