summaryrefslogtreecommitdiff
path: root/lib_generic/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_generic/crc32.c')
-rw-r--r--lib_generic/crc32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c
index 50ca4ffd38..8283413502 100644
--- a/lib_generic/crc32.c
+++ b/lib_generic/crc32.c
@@ -171,7 +171,9 @@ uLong ZEXPORT crc32(crc, buf, len)
return crc ^ 0xffffffffL;
}
-#if (CONFIG_COMMANDS & CFG_CMD_JFFS2)
+#if (CONFIG_COMMANDS & CFG_CMD_JFFS2) \
+ || (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
+
/* No ones complement version. JFFS2 (and other things ?)
* don't use ones compliment in their CRC calculations.