From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: diff-ing two device tree Date: Fri, 9 Sep 2011 10:38:16 +1000 Message-ID: <20110909003816.GX30278@yookeroo.fritz.box> References: <66A9107F-D3BF-4900-99FA-6E1594571BA9@kernel.crashing.org> <20110908182753.GK2967@ponder.secretlab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110908182753.GK2967-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Grant Likely Cc: Devicetree Discuss List-Id: devicetree@vger.kernel.org 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