* diff-ing two device tree
@ 2011-09-08 15:31 Kumar Gala
[not found] ` <66A9107F-D3BF-4900-99FA-6E1594571BA9-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2011-09-08 15:31 UTC (permalink / raw)
To: Devicetree Discuss
Do we have a utility that can diff two device trees. What I'm looking for is something that has some context awareness. It can deal with (p)handle values being different, properties in a node in different order, etc.
thanks
- k
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <66A9107F-D3BF-4900-99FA-6E1594571BA9-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>]
* Re: diff-ing two device tree [not found] ` <66A9107F-D3BF-4900-99FA-6E1594571BA9-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> @ 2011-09-08 17:41 ` Simon Glass 2011-09-08 18:27 ` Grant Likely 1 sibling, 0 replies; 4+ messages in thread From: Simon Glass @ 2011-09-08 17:41 UTC (permalink / raw) To: Kumar Gala; +Cc: Devicetree Discuss On Thu, Sep 8, 2011 at 8:31 AM, Kumar Gala <galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> wrote: > Do we have a utility that can diff two device trees. What I'm looking for is something that has some context awareness. It can deal with (p)handle values being different, properties in a node in different order, etc. Not that I have seen - but I did notice a 'sort' option to dtc which deals with things being a different order, I think. - Simon > > thanks > > - k > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > https://lists.ozlabs.org/listinfo/devicetree-discuss > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: diff-ing two device tree [not found] ` <66A9107F-D3BF-4900-99FA-6E1594571BA9-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org> 2011-09-08 17:41 ` Simon Glass @ 2011-09-08 18:27 ` Grant Likely [not found] ` <20110908182753.GK2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org> 1 sibling, 1 reply; 4+ messages in thread From: Grant Likely @ 2011-09-08 18:27 UTC (permalink / raw) To: Kumar Gala; +Cc: Devicetree Discuss On Thu, Sep 08, 2011 at 10:31:59AM -0500, Kumar Gala wrote: > Do we have a utility that can diff two device trees. What I'm > looking for is something that has some context awareness. It can > deal with (p)handle values being different, properties in a node in > different order, etc. I hacked something together which sorts the two trees and then diffs the output, but that is rather a hack. I don't think anyone has put together a context sensitive dt diff tool. g. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20110908182753.GK2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>]
* Re: diff-ing two device tree [not found] ` <20110908182753.GK2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org> @ 2011-09-09 0:38 ` David Gibson 0 siblings, 0 replies; 4+ messages in thread From: David Gibson @ 2011-09-09 0:38 UTC (permalink / raw) To: Grant Likely; +Cc: Devicetree Discuss On Thu, Sep 08, 2011 at 11:27:53AM -0700, Grant Likely wrote: > On Thu, Sep 08, 2011 at 10:31:59AM -0500, Kumar Gala wrote: > > Do we have a utility that can diff two device trees. What I'm > > looking for is something that has some context awareness. It can > > deal with (p)handle values being different, properties in a node in > > different order, etc. > > I hacked something together which sorts the two trees and then diffs > the output, but that is rather a hack. You mean like the "dtdiff" script that's in the dtc repo... > I don't think anyone has put > together a context sensitive dt diff tool. What would you envisage this tool doing? -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-09 0:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 15:31 diff-ing two device tree Kumar Gala
[not found] ` <66A9107F-D3BF-4900-99FA-6E1594571BA9-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2011-09-08 17:41 ` Simon Glass
2011-09-08 18:27 ` Grant Likely
[not found] ` <20110908182753.GK2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-09-09 0:38 ` David Gibson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).