From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D05B0C33CB1 for ; Wed, 15 Jan 2020 16:25:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5606206D7 for ; Wed, 15 Jan 2020 16:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbgAOQZy (ORCPT ); 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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