dtc: Add code to make diffing trees easier

Matthew McClintock msm at freescale.com
Tue Oct 12 03:09:02 EST 2010


On Oct 11, 2010, at 9:23 AM, Jon Loeliger wrote:

>> On Mon, Oct 11, 2010 at 11:37:38AM +1100, David Gibson wrote:
>>> This patch adds a "dtdiff" script to do a useful form diff of two
>>> device trees.  This automatically converts the tree to dts form (if
>>> it's not already) and uses a new "-s" option in dtc to "sort" the
>>> tree.  That is, it sorts the reserve entries, it sorts the properties
>>> within each node by name, and it sorts nodes by name within their
>>> parent.
>>> 
>>> This gives a pretty sensible diff between the trees, which will ignore
>>> semantically null internal rearrangements (directly diffing the dts
>>> files can give a lot of noise due to the order changes).
>>> 
>>> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
>> 
>> Acked-by: Grant Likely <grant.likely at secretlab.ca>
> 
> I am inclined to take this patch.  Any other comments?  Matt?
> 

Looks good to me.

-M

> Thanks,
> jdl
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
> 




More information about the devicetree-discuss mailing list