summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@free-electrons.com>2012-01-13 13:27:39 +0000
committerAnatolij Gustschin <agust@denx.de>2012-03-27 10:18:00 +0200
commitdc6449a9d8c27899b9bbdaaf49d1535f7a41fd8e (patch)
tree09a409afdd20abc9c48ececcb15ff00c68b29c7a /tools
parent6ee39f8055680654f9cc97b98dcce9588f1ab71e (diff)
downloadu-boot-imx-dc6449a9d8c27899b9bbdaaf49d1535f7a41fd8e.zip
u-boot-imx-dc6449a9d8c27899b9bbdaaf49d1535f7a41fd8e.tar.gz
u-boot-imx-dc6449a9d8c27899b9bbdaaf49d1535f7a41fd8e.tar.bz2
mkenvimage: Don't try to detect comments in the input file
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkenvimage.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c
index 4169004..3a20b23 100644
--- a/tools/mkenvimage.c
+++ b/tools/mkenvimage.c
@@ -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];
}