summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2012-05-07 12:44:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-09 21:41:43 +0100
commit7c803cea58737ea0abc62cd21c3813d955f07224 (patch)
tree55d4deb5fc91c50ed82881b4eb7d05e2dec7bc16 /meta
parent2f071e32128d8c022277c8af72dae47f60cf212b (diff)
downloadopenembedded-core-7c803cea58737ea0abc62cd21c3813d955f07224.tar.gz
openembedded-core-7c803cea58737ea0abc62cd21c3813d955f07224.tar.bz2
openembedded-core-7c803cea58737ea0abc62cd21c3813d955f07224.tar.xz
openembedded-core-7c803cea58737ea0abc62cd21c3813d955f07224.zip
image_types.bbclass: redefine EXTRA_IMAGECMD_jffs2 to leverage siteinfo
Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'meta')
-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 b590ae152..55f122eb8 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -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"