Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6677007ybl; Wed, 15 Jan 2020 08:27:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyrSdN9VmS0wmX3HvC4f2atdZy6sDv+dxszErlmmbMqnOL8RADuJQVrFhzFcR7SyQyck9+0 X-Received: by 2002:aca:f5c1:: with SMTP id t184mr487462oih.23.1579105623991; Wed, 15 Jan 2020 08:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579105623; cv=none; d=google.com; s=arc-20160816; b=QUEu3h6o13ScwsqFBJ9DSoeBMUB6Hjvy8LigNc+dnkH8zH7DmbGnjkR8sByWcBRkyG FaigEE879sfxCHoC3NjP/noZ3zCJ7nRH/7XcxbKmATm3i1i7osFxQ+7BcTNE3rh5bav7 vsFAs9Aek2E9ySF6WtD917oQRv2EQiiV68C2yR0lL/25in16AepAoQsAS4mW/shcXD86 R7rgmsfg7Hrl1vqy8bvYFFa26O81R2L7m6qwbW7UBnqG06NnrWgFSfrVC9t4Gb4GUSFV 39vYm2jumUZGSyO4htblGrR+k7d5Gk/ALlt/o4GKG2G0tWOUlPI7xw/6nu+Cntbvh388 WkPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:cc:in-reply-to:subject:to :from; bh=swCvIJvAxOIIKKWN8BZ3OGEBZwvb9r5AETPej+24/J8=; b=W0VxXiP8SBnxEjm7p8mx4JOPI4LR6Sn/t9ub3YqO3N2UUhpBKxkjxuT2ok0HGfeDpk Z+qlYpwriy2js/dIxcrrz/qAbffTk0TWJgfOhGyAsC1HlmpCpGVOmJP+YHfg2IRP89qy MYt2CF0VZBz4ItOXV8fVFsPDf6Wm+X/47eV2a0fN5VZAVW2yT8YAj4YvRz9e7jwtKNQK Lni/bSWqkg3NehOeblLoIn/qkmZrc36IVaUMzj+Zw/30XkjTh1AtMJHDZ3G6s1tgN7jJ Nj3mXncPu+tcXAy46SMfKrvBhgDLlzeiV4kjk9vnpiFFGm7QFtMQLj3jq6lGh3piCD8k 6XQQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si10052035otl.213.2020.01.15.08.26.52; Wed, 15 Jan 2020 08:27:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbgAOQZy (ORCPT + 99 others); Wed, 15 Jan 2020 11:25:54 -0500 Received: from jack.einval.com ([84.45.184.145]:37052 "EHLO mail.einval.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbgAOQZy (ORCPT ); Wed, 15 Jan 2020 11:25:54 -0500 X-Greylist: delayed 1784 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Jan 2020 11:25:53 EST Received: from steve by mail.einval.com with local (Exim 4.92) (envelope-from ) id 1irl1W-00082F-CF; Wed, 15 Jan 2020 15:56:02 +0000 From: Steve McIntyre To: alexandre.torgue@st.com Subject: Re: [RFC PATCH 0/3] Add device tree build information In-Reply-To: <20200113181625.3130-1-alexandre.torgue@st.com> Cc: , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, devicetree-compiler@vger.kernel.org Message-Id: Date: Wed, 15 Jan 2020 15:56:02 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre! alexandre.torgue@st.com wrote: > >The goal of this series is to add device tree build information in dtb. >This information can be dtb build date, where devicetree files come from, >who built the dtb ... Actually, same kind of information that you can find >in the Linux banner which is printout during kernel boot. Having the same >kind of information for device tree is useful for debugging and maintenance. > >To achieve that a new option "-B" (using an argument) is added to dtc. >The argument is a file containing a string with build information >(e.g., From Linux 5.5.0-rc1 by alex the Mon Jan 13 18:25:38 CET 2020). >DTC use it to append dts file with a new string property "Build-info". > >of/fdt.c is modified to printout "Build-info" property during Kernel boot and >scripts/Makefile.lib is modified to use dtc -B option during kernel make (this >last part could be improved for sure). > >Regards >Alex > >Alexandre Torgue (3): > dtc: Add dtb build information option > of: fdt: print dtb build information > scripts: Use -B dtc option to generate dtb build information. > > drivers/of/fdt.c | 9 +++++++ > scripts/Makefile.lib | 11 +++++--- > scripts/dtc/dtc.c | 55 +++++++++++++++++++++++++++++++++----- > scripts/gen_dtb_build_info | 11 ++++++++ > 4 files changed, 76 insertions(+), 10 deletions(-) > create mode 100755 scripts/gen_dtb_build_info Looks good to me in testing here: [ 0.000000] OF: fdt: From Linux 5.5.0-rc6-00031-g95e20af9fb9c-dirty by stemci01 the Wed 15 Jan 14:33:25 GMT 2020. Tested-By: Steve McIntyre -- Steve McIntyre steve.mcintyre@linaro.org Linaro.org | Open source software for ARM SoCs