]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mkenvimage: Don't try to detect comments in the input file
authorDavid Wagner <david.wagner@free-electrons.com>
Fri, 13 Jan 2012 13:27:39 +0000 (13:27 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 27 Mar 2012 08:18:00 +0000 (10:18 +0200)
Remove this feature since it seems impossible to reliably detect them.

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
tools/mkenvimage.c

index 4169004aabae2a5dbe5b784330a814b1ed102855..3a20b23ed16eb856613b4f571c6c257eb31a4732 100644 (file)
@@ -258,14 +258,6 @@ int main(int argc, char **argv)
                                /* End of a variable */
                                envptr[ep++] = '\0';
                        }
-               } else if (filebuf[fp] == '#') {
-                       if (fp != 0 && filebuf[fp-1] == '\n') {
-                               /* This line is a comment, let's skip it */
-                               while (fp < txt_file_stat.st_size && fp++ &&
-                                      filebuf[fp] != '\n');
-                       } else {
-                               envptr[ep++] = filebuf[fp];
-                       }
                } else {
                        envptr[ep++] = filebuf[fp];
                }