[PATCH 8/9 V3] Add documentation for the new DTS language.

M. Warner Losh imp at bsdimp.com
Fri Oct 3 05:50:04 EST 2008


In message: <20081002152242.GB22258 at ld0162-tx32.am.freescale.net>
            Scott Wood <scottwood at freescale.com> writes:
: On Thu, Oct 02, 2008 at 11:18:00AM +1000, David Gibson wrote:
: > > I vote against anything similar to the C preprocessor.
: > 
: > Why?
: 
: It's not nearly as powerful as the semantic approach, and it is
: syntactically clumsy (I do *not* want to have to put a backslash at the
: end of every line within a macro, for example).

And there are no looping constructs at all in CPP.  You flat out can't
do a generalized for loop with the macro language, for example.  Its
symbols also do not map 1-1/onto symbols used by the dts files.  It
can only grok macros you define for it, so it has no way of knowing
many useful things that dts just knows.

Basically, it is using a hammer to pound screws in.  Sure, it seems to
work, but the results are shoddy.

Warner



More information about the devicetree-discuss mailing list