The usage for mkyaffsimage is:
mkyaffsimage dir image_file [convert]
The check for the value of argc fails when the convert argument is
not provided. The attached patch allows the convert argument to
be ommitted.
-Frank
--
Frank Rowand <
frank_rowand@mvista.com>
MontaVista Software, Inc
Index: yaffs/utils/mkyaffsimage.c
===================================================================
--- yaffs.orig/utils/mkyaffsimage.c
+++ yaffs/utils/mkyaffsimage.c
@@ -535,7 +535,7 @@
printf("mkyaffsimage: image building tool for YAFFS built "__DATE__"\n");
- if(argc <= 3)
+ if(argc < 3)
{
printf("usage: mkyaffsimage dir image_file [convert]\n");
printf(" dir the directory tree to be converted\n");