summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch')
-rw-r--r--meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch b/meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch
deleted file mode 100644
index ad4eb5b..0000000
--- a/meta-ti-extras/recipes/dtc/dtc/0004-plugin-Transparently-support-old-style-syntax.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From f7da040f2bed614fd55a4901d71fafb916863e8a Mon Sep 17 00:00:00 2001
2From: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
3Date: Wed, 20 Apr 2016 20:36:35 +0300
4Subject: [PATCH] plugin: Transparently support old style syntax
5
6The old style syntax for plugins is still out in the wild.
7This patch transparently support it.
8
9Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
10---
11 dtc-parser.y | 19 ++++++++++++++++---
12 1 file changed, 16 insertions(+), 3 deletions(-)
13
14diff --git a/dtc-parser.y b/dtc-parser.y
15index 2890c1c..4a67baf 100644
16--- a/dtc-parser.y
17+++ b/dtc-parser.y
18@@ -77,6 +77,7 @@ extern unsigned int the_versionflags;
19 %type <data> propdataprefix
20 %type <flags> versioninfo
21 %type <flags> plugindecl
22+%type <flags> oldplugindecl
23 %type <re> memreserve
24 %type <re> memreserves
25 %type <array> arrayprefix
26@@ -107,10 +108,10 @@ extern unsigned int the_versionflags;
27 %%
28
29 sourcefile:
30- versioninfo ';' memreserves devicetree
31+ versioninfo ';' oldplugindecl memreserves devicetree
32 {
33- the_boot_info = build_boot_info($1, $3, $4,
34- guess_boot_cpuid($4));
35+ the_boot_info = build_boot_info($1 | $3, $4, $5,
36+ guess_boot_cpuid($5));
37 }
38 ;
39
40@@ -134,6 +135,18 @@ plugindecl:
41 }
42 ;
43
44+oldplugindecl:
45+ DT_PLUGIN ';'
46+ {
47+ the_versionflags |= VF_PLUGIN;
48+ $$ = VF_PLUGIN;
49+ }
50+ | /* empty */
51+ {
52+ $$ = 0;
53+ }
54+ ;
55+
56 memreserves:
57 /* empty */
58 {
59--
601.9.1
61