diff options
author | Ting Liu <b28495@freescale.com> | 2012-05-07 12:44:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-09 21:42:52 +0100 |
commit | c77298120cbeebaaa619f1daca90a2d298240628 (patch) | |
tree | 530ceed4e804e5522e4491d4c8fbe9f12a5368bc /meta | |
parent | 3c97806c292b11879c1319e1baed70d917d3b49f (diff) | |
download | poky-c77298120cbeebaaa619f1daca90a2d298240628.tar.gz |
image_types.bbclass: redefine EXTRA_IMAGECMD_jffs2 to leverage siteinfo
(From OE-Core rev: 7c803cea58737ea0abc62cd21c3813d955f07224)
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index b590ae152b..55f122eb8c 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -188,7 +188,12 @@ IMAGE_CMD_ubi () { | |||
188 | IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}" | 188 | IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}" |
189 | 189 | ||
190 | EXTRA_IMAGECMD = "" | 190 | EXTRA_IMAGECMD = "" |
191 | EXTRA_IMAGECMD_jffs2 ?= "--pad --little-endian --eraseblock=0x40000" | 191 | |
192 | inherit siteinfo | ||
193 | JFFS2_ENDIANNESS ?= "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--little-endian', '--big-endian', d)}" | ||
194 | JFFS2_ERASEBLOCK ?= "0x40000" | ||
195 | EXTRA_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) |
193 | EXTRA_IMAGECMD_ext2 ?= "-i 8192" | 198 | EXTRA_IMAGECMD_ext2 ?= "-i 8192" |
194 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" | 199 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" |