dtc: Add code to make diffing trees easier

David Gibson david at gibson.dropbear.id.au
Wed Nov 10 11:55:03 EST 2010


On Tue, Nov 09, 2010 at 04:02:42PM -0800, John Bonesio wrote:
> I just applied this patch and gave it a try.
> 
> I'm in the process of changing dts files for mpc5200b systems to use the
> new device tree merging with a .dtsi file.
> 
> I used this sorting tool to try to compare my results to make sure I'm
> not breaking anything. Unfortunately for some of the files I ended up
> renaming nodes from the original. When the nodes are renamed, the
> sorting doesn't produce what I would like. The nodes get reordered by
> the sorting method when in this case I'd rather they didn't change order.

> What I would have liked is to see that the node was renamed but the
> contents were the same.
> 
> I'm wondering if the node sorting could be done somehow by register
> values.

And then it won't generate what you want if you change reg, but leave
the name (mostly) the same.  Both methods are imperfect and the
current one is much simpler to implement, so, no.

-- 
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