diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-28 17:25:59 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-10-01 12:11:35 -0400 |
commit | cd296721a9645f9f28800a072490fa15458d1fb7 (patch) | |
tree | 492b9a268a48af07844fbbd39519f95676ee73fe /scripts/dtc/treesource.c | |
parent | acc2097934b5403b97f95763fe99fc115b818061 (diff) |
dtc: import latest upstream dtc
This updates scripts/dtc to commit 317a5d9 "dtc: zero out new label
objects" from git://git.jdl.com/software/dtc.git.
This adds features such as:
* /bits/ syntax for cell data.
* Math expressions within cell data.
* The ability to delete properties or nodes.
* Support for #line directives in the input file, which allows the use of
cpp on *.dts.
* -i command-line option (/include/ path)
* -W/-E command-line options for error/warning control.
* Removal of spew to STDOUT containing the filename being compiled.
* Many additions to the libfdt API.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Jon Loeliger <jdl@jdl.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'scripts/dtc/treesource.c')
-rw-r--r-- | scripts/dtc/treesource.c | 2 |
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 | ||
24 | extern FILE *yyin; | 24 | extern FILE *yyin; |
25 | extern int yyparse(void); | 25 | extern int yyparse(void); |
26 | extern YYLTYPE yylloc; | ||
26 | 27 | ||
27 | struct boot_info *the_boot_info; | 28 | struct boot_info *the_boot_info; |
28 | int treesource_error; | 29 | int 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"); |