X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fmkimage%2Fsrc%2Fcrc32.c;fp=tools%2Fmkimage%2Fsrc%2Fcrc32.c;h=3d99b69296c7e4504126b175a58176581ff57f08;hb=89897bd2ab532637ad16b3d857ed4d07963c991c;hp=9294fcba03e7c255e3ded2237a67c4bf12332078;hpb=bedf56bac76985a754d134097fedae2d246171a1;p=lede-git%2F.git 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 /* 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.