[tools] compute rootfs crc32 required for brcm63xx web upgrades
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 2 Apr 2009 09:57:00 +0000 (09:57 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 2 Apr 2009 09:57:00 +0000 (09:57 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15081 3c298f89-4303-0410-b956-a3cf2f4a3e73

tools/firmware-utils/src/imagetag.c

index af37992..f5d0cdc 100644 (file)
@@ -191,10 +191,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
        fseek(binfile, rootfsoff - fwaddr, SEEK_SET);
        while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) {
                read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile);
-               /*
-                * TODO: Is this necessary ?
-                * crc = crc32(crc, readbuf, read);
-                */
+               crc = crc32(crc, readbuf, read);
                fwrite(readbuf, sizeof(uint8_t), read, binfile);
        }
 
This page took 0.023113 seconds and 4 git commands to generate.