[PATCH 0/2] dtc: cpp co-existence

Stephen Warren swarren at wwwdotorg.org
Tue Sep 25 08:51:15 EST 2012


From: Stephen Warren <swarren at nvidia.com>

This series is a minimal set of changes to dtc that allows one to run
cpp on a .dts file, and pass the result to dtc for final compilation.

Stephen Warren (2):
  dtc: cpp co-existence: allow names starting with # to be escaped
  dtc: cpp co-existence: add support for #line directives

 dtc-lexer.l                |   26 ++++++++++++++++++++++++--
 srcpos.c                   |    6 ++++++
 srcpos.h                   |    2 ++
 tests/.gitignore           |    1 +
 tests/Makefile.tests       |    2 +-
 tests/propname_escapes.c   |   43 +++++++++++++++++++++++++++++++++++++++++++
 tests/propname_escapes.dts |   13 +++++++++++++
 tests/run_tests.sh         |    3 +++
 8 files changed, 93 insertions(+), 3 deletions(-)
 create mode 100644 tests/propname_escapes.c
 create mode 100644 tests/propname_escapes.dts



More information about the devicetree-discuss mailing list