summaryrefslogtreecommitdiff
path: root/packages/mtd
diff options
context:
space:
mode:
authorArjan Schrijver <arjan@anymore.nl>2005-12-30 18:15:34 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-12-30 18:15:34 +0000
commit0538dc56af6fec1d8e4043382d43f02d8c78ecba (patch)
tree1a8e4bdb422252f4cb5f1389b47fe25aa94eb76d /packages/mtd
parentc7016b0227d346823b8d172301329fa5506b2d2d (diff)
mtd-utils: add patch to make nanddump --ignoreerrors actually do something different
Diffstat (limited to 'packages/mtd')
-rw-r--r--packages/mtd/mtd-utils/fix-ignoreerrors.patch20
-rw-r--r--packages/mtd/mtd-utils_20050801.bb3
2 files changed, 22 insertions, 1 deletions
diff --git a/packages/mtd/mtd-utils/fix-ignoreerrors.patch b/packages/mtd/mtd-utils/fix-ignoreerrors.patch
new file mode 100644
index 0000000000..b1f702a316
--- /dev/null
+++ b/packages/mtd/mtd-utils/fix-ignoreerrors.patch
@@ -0,0 +1,20 @@
+--- mtd/util/nanddump.c.orig 2005-12-30 19:07:39.000000000 +0100
++++ mtd/util/nanddump.c 2005-12-30 19:08:53.000000000 +0100
+@@ -224,7 +224,7 @@
+ }
+ }
+
+- if (badblock) {
++ if (badblock && !ignoreerrors) {
+ if (omitbad)
+ continue;
+ memset (readbuf, 0xff, bs);
+@@ -259,7 +259,7 @@
+ if (omitoob)
+ continue;
+
+- if (badblock) {
++ if (badblock && !ignoreerrors) {
+ memset (readbuf, 0xff, meminfo.oobsize);
+ } else {
+ /* Read OOB data and exit on failure */
diff --git a/packages/mtd/mtd-utils_20050801.bb b/packages/mtd/mtd-utils_20050801.bb
index 20ef373566..ca7c471d6e 100644
--- a/packages/mtd/mtd-utils_20050801.bb
+++ b/packages/mtd/mtd-utils_20050801.bb
@@ -8,7 +8,8 @@ CVSDATE = "${PV}"
SRC_URI = "cvs://anoncvs:anoncvs@cvs.infradead.org/home/cvs;module=mtd \
file://add-exclusion-to-mkfs-jffs2.patch;patch=1 \
- file://more-verbosity.patch;patch=1"
+ file://more-verbosity.patch;patch=1 \
+ file://fix-ignoreerrors.patch;patch=1"
S = "${WORKDIR}/mtd/"
CFLAGS_prepend = "-I${S}/include "