Return a non-zero exit code if an error occurs during dts parsing.

Previously, only failure to parse caused the reading of the tree to fail;
semantic errors that called yyerror() but not YYERROR only emitted a message,
without signalling make to stop the build.

Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
Scott Wood 2008-01-03 17:43:33 -06:00 committed by Jon Loeliger
parent 910efac4b4
commit ad4f54ae2b
5 changed files with 8 additions and 1 deletions

2
dtc.c
View file

@ -205,7 +205,7 @@ int main(int argc, char *argv[])
if (inf && inf->file != stdin)
fclose(inf->file);
if (! bi || ! bi->dt)
if (! bi || ! bi->dt || bi->error)
die("Couldn't read input tree\n");
process_checks(force, bi);