Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1166951imu; Tue, 11 Dec 2018 14:01:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/WHXsCks0WykjkQ3RLdUFb3NOTU977jHz/l2mlVAGqRqYmvvnwrLYCp5qU1VADrHhjXBqsu X-Received: by 2002:a62:32c4:: with SMTP id y187mr18642301pfy.195.1544565661416; Tue, 11 Dec 2018 14:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544565661; cv=none; d=google.com; s=arc-20160816; b=N5jb8ihm5i6SJ2ja3FVtx7zYVrYeECBfQqVkWZPR1KL1OXlak9qekpP0PwUnJUE5wi G4XOdW/B0P2GcKdFrayCuylHUagEnWmFzVP9FhAipBOiAtUO6RvA5/4M8/STIsfj5MpO 2roiSWivgLrVxQq+vEMDu1xI6GJ68O00JcmfIAlw+ULDf/aZ16T7j6n5YJbUpn1cJ0Nf LI4YAnJ6x8+xKDx8t5JkjpwVQ1DftMqX5EmLQhBlPJTlu0o5qFk2cot8XOwxGLfgvlKh YwXDkhuokblYDhHbszYjCXmqZoa7UwMPCi3gLDX5eO3H7eYMIZd6hwRPneXsKAzmmCdO KRKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=JsizWuxivQwCor4f18/Dzhh5JdhzgqGGUKMUTx0zDIw=; b=YTwE5uroQtD0oHCiqWDvyNp1/ApCRjw/k1rWwei8WeFk+LfOMly/hXolkdM7mz7lxB CoARHu/eHuG14cUOnxdjBPapywMQPhwt3RKVwzaj3gMORujdnframxRYFW3ocbLh07LN JFCgDvIYTlyoK6FcO7H5gPh74CGcf0/Ltad5/k3PTBCDLtxRXciAhp8Di77qfZhEEkaU x/jBSnbAyIfmRwGow+5Wr+GYrlu0GztRINAAB8HH2uVDGmzJLN55wa4ttoatemTjuHtx LE7MUjBBbTOIiDfyx0g4HHQSLSLWnICmaN1qERRLOPDOzD7o3Qi9IgX+MkErKOo+qUZd 6/pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QPzK0G4l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si14329541pfj.244.2018.12.11.14.00.46; Tue, 11 Dec 2018 14:01:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QPzK0G4l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbeLKV6d (ORCPT + 99 others); Tue, 11 Dec 2018 16:58:33 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34527 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbeLKV6d (ORCPT ); Tue, 11 Dec 2018 16:58:33 -0500 Received: by mail-pg1-f194.google.com with SMTP id 17so7284032pgg.1; Tue, 11 Dec 2018 13:58:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JsizWuxivQwCor4f18/Dzhh5JdhzgqGGUKMUTx0zDIw=; b=QPzK0G4lussss1f7j7yBd9IhovSVNXeu0kE4XXlrurIaPgODoNRJL0gSQcMGhBAFNP F5t/m1p5iTbAw/yBCPBW+sWXa4HDdFvOlsQQfuco46k2qXqfhs/GD95qtf63DBZCL926 Od7/TdeDefD93TXph91VrWxyO6TSU/sUR+RYIJcGtfjzef3gbyQGHZgtGmOeezOVn/Bg iuuTBedPBY8XmqXZXFHNSBCGMsA5x4uUsdOn4vMgLe/ERqRtch8m4zesnYfCPwc8oMxd nf+HA2RJ32rra6On9T4uIrQkPmgGw8lPuccrvbgW7cMq5ByD02ukwAaqlEYWqEdf8vbq KeQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JsizWuxivQwCor4f18/Dzhh5JdhzgqGGUKMUTx0zDIw=; b=GUY0465A7Jx1xvvmkTjdWOi5kAeCntyX6IWco0fL6HtLewJ2U1H/uR0X6oK6a+YVeF N8MME/R8OrNh2eg8Bu/C+B3tiB/0rlljoSU6LAqaAHjqBSFwcjc2D1NjpcOotgl8WHNs 2oKxSEiSyL/XADuOyocamptdhASWzLmSScfkuLQVrKNWN3loBcpSHZ7gaH3m2Nf+O68F lFtrmEiA1wJLW1LCFvF/Gjo2rXUGYM0lYkxMM61X6l4Up2N2zyoWbNk/sKV0pr/9QO3W rSzCvwM+YwdX432zeytbL1l8yrKY3sAqLYXYFs/qvVBZqKfITWvK37iSshZODgmNv2NZ xihg== X-Gm-Message-State: AA+aEWZ5Nh1+hXcYBTG+PeHKa+wQfc6QXtUyIgyYJ32mNTjgeEaBEfaw I3xVuyTD45v4+UPGU4F7Uw2uvdUB X-Received: by 2002:aa7:8354:: with SMTP id z20mr17642302pfm.81.1544565512259; Tue, 11 Dec 2018 13:58:32 -0800 (PST) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id r83sm26342337pfc.115.2018.12.11.13.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 13:58:31 -0800 (PST) Subject: Re: [PATCH] of: add dtc annotations functionality to dtx_diff From: Frank Rowand To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall References: <1543233669-8696-1-git-send-email-frowand.list@gmail.com> Message-ID: Date: Tue, 11 Dec 2018 13:58:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1543233669-8696-1-git-send-email-frowand.list@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 11/26/18 4:01 AM, frowand.list@gmail.com wrote: > From: Frank Rowand > > Add -T and --annotations command line arguments to dtx_diff. These > arguments will be passed through to dtc. dtc will then add source > location annotations to its output. > > Signed-off-by: Frank Rowand > --- > > This feature depends upon commit 5667e7ef9a9a ("annotations: add the > annotation functionality") in the dtc git repository. To use the Ping. Your subsequent patch on 11/30, "[PATCH 1/3] scripts/dtc: Update to upstream version v1.4.7-57-gf267e674d145" adds the required commit. -Frank > new flags before the new version of dtc is imported to the linux > kernel, download the dtc repository, compile dtc with the make command, > then add the path of the dtc repository to the shell PATH variable.> > scripts/dtc/dtx_diff | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff > index 8c4fbad2055e..0d8572008729 100755 > --- a/scripts/dtc/dtx_diff > +++ b/scripts/dtc/dtx_diff > @@ -21,6 +21,7 @@ Usage: > diff DTx_1 and DTx_2 > > > + --annotate synonym for -T > -f print full dts in diff (--unified=99999) > -h synonym for --help > -help synonym for --help > @@ -28,6 +29,7 @@ Usage: > -s SRCTREE linux kernel source tree is at path SRCTREE > (default is current directory) > -S linux kernel source tree is at root of current git repo > + -T Annotate output .dts with input source file and line (-T -T for more details) > -u unsorted, do not sort DTx > > > @@ -174,6 +176,7 @@ compile_to_dts() { > > # ----- start of script > > +annotate="" > cmd_diff=0 > diff_flags="-u" > dtx_file_1="" > @@ -208,6 +211,14 @@ while [ $# -gt 0 ] ; do > shift > ;; > > + -T | --annotate ) > + if [ "${annotate}" = "" ] ; then > + annotate="-T" > + elif [ "${annotate}" = "-T" ] ; then > + annotate="-T -T" > + fi > + shift > + ;; > -u ) > dtc_sort="" > shift > @@ -327,7 +338,7 @@ cpp_flags="\ > DTC="\ > ${DTC} \ > -i ${srctree}/scripts/dtc/include-prefixes \ > - -O dts -qq -f ${dtc_sort} -o -" > + -O dts -qq -f ${dtc_sort} ${annotate} -o -" > > > # ----- do the diff or decompile >