aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dtc/treesource.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dtc/treesource.c')
-rw-r--r--scripts/dtc/treesource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dtc/treesource.c b/scripts/dtc/treesource.c
index c09aafade313..33eeba55fb4d 100644
--- a/scripts/dtc/treesource.c
+++ b/scripts/dtc/treesource.c
@@ -23,6 +23,7 @@
23 23
24extern FILE *yyin; 24extern FILE *yyin;
25extern int yyparse(void); 25extern int yyparse(void);
26extern YYLTYPE yylloc;
26 27
27struct boot_info *the_boot_info; 28struct boot_info *the_boot_info;
28int treesource_error; 29int treesource_error;
@@ -34,6 +35,7 @@ struct boot_info *dt_from_source(const char *fname)
34 35
35 srcfile_push(fname); 36 srcfile_push(fname);
36 yyin = current_srcfile->f; 37 yyin = current_srcfile->f;
38 yylloc.file = current_srcfile;
37 39
38 if (yyparse() != 0) 40 if (yyparse() != 0)
39 die("Unable to parse input tree\n"); 41 die("Unable to parse input tree\n");