summaryrefslogtreecommitdiff
path: root/dtc-lexer.l
diff options
context:
space:
mode:
authorJohn Bonesio <bones@secretlab.ca>2010-11-02 15:55:04 -0700
committerJon Loeliger <jdl@jdl.com>2010-11-13 14:44:06 -0600
commit73ae43ea44a40c2ac00dd94523f270177a1e72e9 (patch)
tree43362bbc2f133e2b5880fbad9b3829c716ec7698 /dtc-lexer.l
parentc0fa2e6d4e59e62f2e9f23db1a2d94532fa4ae98 (diff)
downloaddtc-73ae43ea44a40c2ac00dd94523f270177a1e72e9.tar.gz
Allow nodes to be referenced by path at the top level.
When nodes are modified by merging device trees, nodes to be updated/merged can be specified by a label. Specifying nodes by full path (instead of label) doesn't quite work. This patch fixes that. Signed-off-by: John Bonesio <bones@secretlab.ca> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-lexer.l')
-rw-r--r--dtc-lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc-lexer.l b/dtc-lexer.l
index 081e13a..e866ea5 100644
--- a/dtc-lexer.l
+++ b/dtc-lexer.l
@@ -115,7 +115,7 @@ static int pop_input_file(void);
return DT_REF;
}
-"&{/"{PATHCHAR}+\} { /* new-style path reference */
+<*>"&{/"{PATHCHAR}+\} { /* new-style path reference */
yytext[yyleng-1] = '\0';
DPRINT("Ref: %s\n", yytext+2);
yylval.labelref = xstrdup(yytext+2);