summaryrefslogtreecommitdiff
path: root/ubi-utils/scripts/Makefile
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2008-01-07 14:05:00 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-01-15 12:47:09 +0200
commit50e2cd3f3433c42b1c4104430692acc6bc450646 (patch)
tree6636f1fb445dfbb6642e65fe4f186a1129bbbebc /ubi-utils/scripts/Makefile
parent4bf037f3a2aea4328e10422379f751370d288d46 (diff)
ubi-utils: Remove obsolete code/data
Artem figured out that certain stuff is obsolete. He also sugested that we move the code from the perl directory into the scripts directory to reduce the number of directories. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/scripts/Makefile')
-rw-r--r--ubi-utils/scripts/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/ubi-utils/scripts/Makefile b/ubi-utils/scripts/Makefile
index ebd9bc6..b8e3c96 100644
--- a/ubi-utils/scripts/Makefile
+++ b/ubi-utils/scripts/Makefile
@@ -39,7 +39,23 @@ compl_img ?= $(compl).img
compl_nand2048_mif=$(compl).$(flashtype)$(pagesize).mif
compl_nand2048_img=$(compl).$(flashtype)$(pagesize).img
-all: $(compl_pfi) $(compl_nand2048_mif)
+all: help
+
+help:
+ @echo "Testcases for the UBI/NAND manufacturing tool-chain"
+ @echo "---------------------------------------------------------------"
+ @echo " make mif_test - Generate a mif (manufacturing "
+ @echo " image file)."
+ @echo " make bin2nand2bin_test - Create binary with ECC information"
+ @echo " in the OOB area. Test ECC generation"
+ @echo " and correction."
+
+mif_test: $(compl_pfi) $(compl_nand2048_mif)
+
+bin2nand2bin_test:
+ chmod a+x ./bin2nand2bin_test.sh
+ chmod a+x ./inject_biterror.pl
+ ./bin2nand2bin_test.sh
$(compl_pfi): $(vmlinux_bin) $(rootfs_bin) $(spl_bin)
$(mkpfi) -c $(mkpfi_cfg)
@@ -69,7 +85,7 @@ $(vmlinux_bin) $(rootfs_bin) $(spl_bin):
$(dd) if=/dev/urandom of=$@ bs=1M count=1
clean:
- $(RM) *.pfi *~
+ $(RM) *.pfi *~ testblock* oob.bin
distclean: clean
$(RM) *.bin *.mif *.oob *.img