[2/5] image_types.bbclass: fix endiannes for sumtool (jffs2 summary)

Submitted by Andrea Adami on Oct. 20, 2013, 10:34 p.m.


Message ID 5981e1e1e25eb384ed31a1dc79824755db9c8722.1382307169.git.andrea.adami@gmail.com
State Accepted, archived
Commit be566b6f77423f7f676bc6b0511966651d687871
Headers show

Commit Message

Andrea Adami Oct. 20, 2013, 10:34 p.m.
For mkfs.jffs2 endianness can be be expressed in the long or short form
with the optional size argument:


Strangely the sumtool has a different syntax and does accept the forms:


Prefer the short form valid for both tools.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
 meta/classes/image_types.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 8693a8f..b8779e0 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -209,7 +209,7 @@  IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_
 inherit siteinfo
-JFFS2_ENDIANNESS ?= "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--little-endian', '--big-endian', d)}"
+JFFS2_ENDIANNESS ?= "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-l', '-b', d)}"
 JFFS2_ERASEBLOCK ?= "0x40000"
 EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"