Re: [PATCH] dtc: create tool to diff device trees
From: Frank Rowand
Date: Thu Jan 07 2016 - 13:40:36 EST
On 1/4/2016 1:29 PM, Rob Herring wrote:
> On Thu, Dec 31, 2015 at 3:12 AM, Frank Rowand <frowand.list@xxxxxxxxx> wrote:
>> From: Frank Rowand <frank.rowand@xxxxxxxxxxxxxx>
>>
>> Create script to diff device trees.
>>
>> The device tree can be in any of the forms recognized by the dtc compiler:
>> - source
>> - binary blob
>> - file system tree (from /proc/devicetree)
>>
>> If the device tree is a source file, then it is pre-processed in the
>> same way as it would be when built in the linux kernel source tree
>> before diffing.
>
> In general, I'd like to see some of this move to dtc and the kernel
> dependencies minimized.
>
I didn't address this comment in my first reply. Didn't mean to gloss
over it.
I agree with the sentiment, but I'm not sure how to act on it. I don't
think that dtc should be changed to be Linux specific (but if the dtc
maintainers think differently I would follow their lead). You did
provide at least one example of minimizing kernel dependencies
(removing the arch specific Makefile dtc flags), but beyond that
I'm not sure what can be done.
On the positive side, we can avoid adding more kernel dependencies.
< snip >
-Frank