summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-10-12 07:04:24 +0200
committerStefan Roese <sr@denx.de>2006-10-12 07:05:57 +0200
commit5c34eee94dfafab27d7d76aa5457458672f7544c (patch)
treea78d381d2f241769a012866a0a76524c703b92a0
parentea237a4d258f269785e984ad031f752536b4eedf (diff)
downloadu-boot-imx-5c34eee94dfafab27d7d76aa5457458672f7544c.zip
u-boot-imx-5c34eee94dfafab27d7d76aa5457458672f7544c.tar.gz
u-boot-imx-5c34eee94dfafab27d7d76aa5457458672f7544c.tar.bz2
Fix JFFS2 compilation problem
Patch by Stefan Roese, 12 Oct 2006
-rw-r--r--CHANGELOG3
-rw-r--r--lib_generic/crc32.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 98b3324..68aa65a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4:
======================================================================
+* Fix JFFS2 compilation problem
+ Patch by Stefan Roese, 12 Oct 2006
+
* Cleanup of NAND update patch (remove changelog from cmd_nand.c)
Patch by Guido Classen, 10 Oct 2006
diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c
index 3db224a..3d99b69 100644
--- a/lib_generic/crc32.c
+++ b/lib_generic/crc32.c
@@ -171,8 +171,8 @@ uLong ZEXPORT crc32(crc, buf, len)
return crc ^ 0xffffffffL;
}
-#if ((CONFIG_COMMANDS & CFG_CMD_JFFS2) || (CONFIG_COMMANDS & CFG_CMD_NAND)) \
- && !defined(CFG_NAND_LEGACY)
+#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.