summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2012-05-07 04:44:29 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 10:16:43 (GMT)
commit68888987ce7330816c49d0408ba8a635dc8651fc (patch)
tree6d734a4df2b450fffbd3b8637edb85d4b4abdc63 /meta/classes
parent3129f4ff0e462e85646515b84b86bef7599714da (diff)
downloadpoky-68888987ce7330816c49d0408ba8a635dc8651fc.tar.gz
image_types.bbclass: redefine EXTRA_IMAGECMD_jffs2 to leverage siteinfo
(From OE-Core rev: 3bff2398cd2d730111faa182d16356e189a36353) Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 b590ae1..55f122e 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -188,7 +188,12 @@ IMAGE_CMD_ubi () {
188IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}" 188IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}"
189 189
190EXTRA_IMAGECMD = "" 190EXTRA_IMAGECMD = ""
191EXTRA_IMAGECMD_jffs2 ?= "--pad --little-endian --eraseblock=0x40000" 191
192inherit siteinfo
193JFFS2_ENDIANNESS ?= "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--little-endian', '--big-endian', d)}"
194JFFS2_ERASEBLOCK ?= "0x40000"
195EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
196
192# Change these if you want default genext2fs behavior (i.e. create minimal inode number) 197# Change these if you want default genext2fs behavior (i.e. create minimal inode number)
193EXTRA_IMAGECMD_ext2 ?= "-i 8192" 198EXTRA_IMAGECMD_ext2 ?= "-i 8192"
194EXTRA_IMAGECMD_ext3 ?= "-i 8192" 199EXTRA_IMAGECMD_ext3 ?= "-i 8192"