Explorar el Código

Fix JFFS2 compilation problem
Patch by Stefan Roese, 12 Oct 2006

Stefan Roese hace 18 años
padre
commit
5c34eee94d
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 3 0
      CHANGELOG
  2. 2 2
      lib_generic/crc32.c

+ 3 - 0
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
 

+ 2 - 2
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.