diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2007-05-23 09:42:45 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2007-05-23 09:42:45 +0000 |
commit | 93f3c37ddabd513ef38cdf57d1236fd1854ba8d4 (patch) | |
tree | d62013c3c823ce2428317740cb3898c2b8624224 /tools/mkimage/src/crc32.c | |
parent | 5cfa21f0b9e372d4bbb7f4b72c270bf9788130b8 (diff) | |
download | upstream-93f3c37ddabd513ef38cdf57d1236fd1854ba8d4.tar.gz upstream-93f3c37ddabd513ef38cdf57d1236fd1854ba8d4.tar.bz2 upstream-93f3c37ddabd513ef38cdf57d1236fd1854ba8d4.zip |
upgrade mkimage the current git version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7306 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mkimage/src/crc32.c')
-rw-r--r-- | tools/mkimage/src/crc32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mkimage/src/crc32.c b/tools/mkimage/src/crc32.c index 9294fcba03..3d99b69296 100644 --- a/tools/mkimage/src/crc32.c +++ b/tools/mkimage/src/crc32.c @@ -7,7 +7,7 @@ * Copyright (C) 1995-1998 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ -#define USE_HOSTCC + #ifndef USE_HOSTCC /* Shut down "ANSI does not permit..." warnings */ #include <common.h> /* to get command definitions like CFG_CMD_JFFS2 */ #endif @@ -171,7 +171,8 @@ 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. |