#
# NB Warning this Makefile does not include header dependencies.
#
-# $Id: Makefile,v 1.1 2009-01-04 21:44:24 charles Exp $
+# $Id: Makefile,v 1.2 2009-01-12 00:49:01 charles Exp $
#EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
clean:
- rm -f $(ALLOBJS) core
+ rm -f yaffs_test $(ALLOBJS) core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
seed=$RANDOM
j=$(( $i % 10 ))
rm seed*$j
- echo $seed>seed$i
+ echo $seed>seed-for-run-$i
rm data*$j
- cp ynorsimdata data$i
+ cp emfile-nor data-for-run-$i
echo "######### Run $i with seed $seed"
./yaffs_test -f -u -p -s$seed M18-1
done
* This is only intended as test code to test persistence etc.
*/
-const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.4 2008-07-21 01:03:19 charles Exp $";
+const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.5 2009-01-12 00:49:01 charles Exp $";
#include "yportenv.h"
filedisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024);
- filedisk.handle = open("emfile512-0", O_RDWR | O_CREAT, S_IREAD | S_IWRITE);
+ filedisk.handle = open("emfile-512-0", O_RDWR | O_CREAT, S_IREAD | S_IWRITE);
if(filedisk.handle < 0)
{
* This is only intended as test code to test persistence etc.
*/
-const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.15 2008-07-21 01:03:19 charles Exp $";
+const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.16 2009-01-12 00:49:01 charles Exp $";
#include "yportenv.h"
static char *NToName(char *buf,int n)
{
- sprintf(buf,"emfile2k-%d",n);
+ sprintf(buf,"emfile-2k-%d",n);
return buf;
}
#include <unistd.h>
#include <time.h>
-#define YNORSIM_FNAME "ynorsimdata"
+#define YNORSIM_FNAME "emfile-nor"
/* Set YNORSIM_BIT_CHANGES to a a value from 1..30 to
*simulate bit flipping as the programming happens.