Re: [PATCH 0/2] Character literal parsing
From: Anton Staaf <hidden>
Date: 2011-06-28 23:00:34
Jon, what are your feelings on the proposed patch? I'd love to get an
indication either way, should I continue to pursue this?
Thanks,
Anton
On Fri, Jun 24, 2011 at 2:47 PM, Anton Staaf [off-list ref] wrote:
On Fri, Jun 24, 2011 at 2:34 PM, Grant Likely [off-list ref]wrote:quoted
On Fri, Jun 24, 2011 at 3:11 PM, David Brown [off-list ref] wrote:quoted
On Fri, Jun 24 2011, Anton Staaf wrote:quoted
On Fri, Jun 24, 2011 at 1:02 PM, David Brown [off-list ref]wrote:quoted
quoted
Does this mean that the dtc inside the kernel is going to be the required tool to use to build device trees? This change doesn'tchangequoted
quoted
the DTB format, so it's as much of a concern, but was wondering ifwe'requoted
quoted
intending to keep things compatible. To be honest, I don't know enough to say either way. I am using thecharacterquoted
quoted
literals in a device tree that is used to configure a single firmwareimage forquoted
quoted
multiple boards. That device tree is not currently passed on to thekernel.quoted
quoted
Your question makes me think that there are two device tree compilersthat Iquoted
quoted
should be paying attention to, is that the case? Or was it a moregeneralquoted
quoted
comment about diverging from a historic syntax for device tree sourcefiles?quoted
Both, really. There is a dtc at git://git.kernel.org/pub/scm/linux/kernel/git/galak/dtc.git but itseemsquoted
older than the one in the kernel.The kernel one is simply a copy of the upstream dtc. You should craft your patches against: git://git.jdl.com/software/dtc.gitquoted
Also, the dts form is defined in the ePAPR documents, and this would be a (minor) divergence from that.dts is not set in stone, and is certainly subject to enhancements providing it doesn't break existing users.Adding character literals does not (as far as I can tell) conflict with any existing syntax. All exiting dts files should compile to the exact same blobs with my patches. And of coarse, all of the existing test cases pass cleanly. It would also be a good idea for me to add test cases for character literals. I will do that and update the patch set if we decide to accept the change to the syntax. -Anton