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

David Gibson david at gibson.dropbear.id.au
Sat Oct 4 14:52:20 EST 2008


On Fri, Oct 03, 2008 at 10:27:01AM -0500, Scott Wood wrote:
> On Fri, Oct 03, 2008 at 12:24:24PM +1000, David Gibson wrote:
> > > And if you want the number of somethings to be easily tweakable, you may  
> > > need to do #include/#ifdef recursion.
> > 
> > Yes, we'd certainly need some sort of iteration operator in the
> > expressions for this sort of thing.
> 
> OK, but now we're talking about something more complex than running it
> through CPP with some character conversion.
> 
> A more powerful macro language is certainly an option, though I have a
> personal preference for the semantic approach.

Ugh.. actually.  What I had in mind was not macro features to do
iteration, but iteration constructs in expressions that macros could
expand to.  But I just realised that might not suffice.  It's a fairly
limited number of use cases that that will work for, although I think
they will be common ones.

But you do have a point here.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the devicetree-discuss mailing list