mirror of
https://xff.cz/git/u-boot/
synced 2025-09-09 04:32:29 +02:00
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>
This commit is contained in:
committed by
Anatolij Gustschin
parent
6ee39f8055
commit
dc6449a9d8
@@ -258,14 +258,6 @@ int main(int argc, char **argv)
|
|||||||
/* End of a variable */
|
/* End of a variable */
|
||||||
envptr[ep++] = '\0';
|
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 {
|
} else {
|
||||||
envptr[ep++] = filebuf[fp];
|
envptr[ep++] = filebuf[fp];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user