On Thu, Sep 08, 2011 at 08:51:54AM -0700, Anton Staaf wrote: > On Wed, Sep 7, 2011 at 10:03 PM, David Gibson > <da...@gibson.dropbear.id.au> wrote: > > On Thu, Sep 08, 2011 at 01:18:42PM +1000, David Gibson wrote: > >> On Wed, Sep 07, 2011 at 04:15:37PM -0700, Anton Staaf wrote: > >> > These patches add simple and escaped character literal parsing > >> > support > >> > to the dtc for cell lists and bytestrings. The first patch refactors the > >> > string parsing code in data.c to expose the more primitive character > >> > parsing > >> > code for use in the later patches. I have left the bytestring support in > >> > place but my hope is that it is now separate enough to be discussed > >> > independantly of the refactor and cell list changes. > >> > > >> > Thanks, > >> > Anton > >> > > >> > Changes in v2: > >> > - Move the refactor of data.c to a separate patch > >> > - Add support for character literals in cell lists > >> > - Merge normal and escaped literal support for bytestrings into > >> > - single patch > >> > >> Getting very close with version, although there are still some minor > >> warts I'd like you to address. > > > > Oh, and one other thing, I forgot to say yet: you need some testcases > > for the new functionality. > > Yup, I'll work on these today. I'm still working on deciphering the > testing code. :) Do you have a pointer to a good example of a dtc > test to work from? I tried looking around for a bytestring or literal > test, but couldn't find anything obvious.
Something like escapes.dts / string_escapes.c is probably fairly similar to what you're looking for. -- 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 _______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss