New style overlay and /expansion/ support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Start moving overlay handling from parser into dtc coredtc-parser.y dtc.c dtc.h +3 more | +99 | 0 replies | |
| 2/4 | dtc: Add syntactic sugar version of overlaysdtc.c dtc.h livetree.c | +39 | 0 replies | |
| 3/4 | tests: Add a test for overlays syntactic sugartests/ tests/ | +9 | 0 replies | |
| 4/4 | dtc: Add /expansion/ supportchecks.c dtc-lexer.l dtc-parser.y +3 more | +29 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 0/4] New style overlay and /expansion/ support
This series revives the new style of overlay syntax that never got merged. David said he wanted to handle it outside of the parse phase[1], and he proposed a patch to move overlay application to the livetree phase. I've applied that patch and reworked Pantelis' last two patches for the new style "syntactic sugar" on top[2].
In addition, I've included the new /expansion/ keyword support for overlays that don't reference any labels that are outside of the input file. The new expansion keyword just transforms the unresolved references into strings that go into a new 'target-alias' property instead of the 'target' property. This is in line with what David has proposed on the mailing list a few months ago[3].
RFC part: The current syntax requires a root node or overlays are rejected. Making the root node optional would require some non-trivial rework of the grammar to support it. This means the proposed 'new style' syntax doesn't work without the root node.
[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]
[3] https://lkml.kernel.org/r/[email protected]
David Gibson (1):
Start moving overlay handling from parser into dtc core
Pantelis Antoniou (1):
tests: Add a test for overlays syntactic sugar
Stephen Boyd (2):
dtc: Add syntactic sugar version of overlays
dtc: Add /expansion/ support
checks.c | 2 +- dtc-lexer.l | 6 +++ dtc-parser.y | 68 +++++++++++++++++----------------- dtc.c | 16 +++++++- dtc.h | 20 +++++++++- flattree.c | 2 +- fstree.c | 2 +- livetree.c | 80 +++++++++++++++++++++++++++++++++++++++- tests/overlay_overlay_simple.dts | 3 ++ tests/run_tests.sh | 6 +++ 10 files changed, 163 insertions(+), 42 deletions(-)
Signature · 1 line
2.10.0.297.gf6727b0