Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2064513ybv; Fri, 21 Feb 2020 08:15:42 -0800 (PST) X-Google-Smtp-Source: APXvYqysIITuRu7gJyQy9cqotUHp+GrB5bNYETGkJ1LWV0nuXVQybDky/J8D4OXPqqFeyVv2tVdA X-Received: by 2002:aca:5646:: with SMTP id k67mr2629800oib.166.1582301742257; Fri, 21 Feb 2020 08:15:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582301742; cv=none; d=google.com; s=arc-20160816; b=WZOIdMLHLvyZAQTi5Cl2ICZc4laa0RwZp+4pA715FrYyh3vJQ2Ag7iEtLjQyoJOmmb ZV8Yo+usU+e49JbHOzMDBX2T8Ap/dGHtZwNtIKaQZ7gTCKZ5xJHg2TDEE+TqJNaPvGwj HqGtBOwnoYKhtheUkKi/vhOgt9NWPXjsMUHGTvNJr+eLlTYS+Wt3yz36Yvh6FjGVQrcR paXh94BFEBNWxLBPie3vmtD5ihhKiTkj8p+T/dspRcUlquPfOjDOB83IaQX004GgFZ63 5XI5Gqqbpe0gVob4oCfW7/64UHAMDdtN3rkmLFMILOrp/Bimi8BiDLk7a6stcyANYLow 4k/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=E9Mb7ngTP/ckY+QpFtc5xQAaCA17yjjNEfie0ZjjfD4=; b=HCiHLZaEeVl6Vs5KMIIpyNmOIzl+L9JF/SKOGG3x4hUFNa1Z2aGW1gGwg96OvKDliJ zlkNqgDrBOTQtP/WfXXG5ZtKnJfhroWTeReuLnSSvJSQOu5yBL9+UU+DcgpES3jRGzH/ GnHtL0VUYmegPAXVjl6i/Be4V8Gj5lJ0OJ5XPL015pX/KO+Xg4VV3Qw5F832pDAU4w59 BI/dLUJWSZJjRdKBX1cRIGsSMDx7ST7Rd1/XtanjQ1niFdK0MRL5lCSuAmwqcItcu7vq lc/wYjsYJ926/x9EkfsZQhBgGgE5lYHZrPbJJpokRs2j8+iXqeGkotvAWRvWycmTByR3 5syg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=qGaTrw5G; 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=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si1570373otq.156.2020.02.21.08.15.28; Fri, 21 Feb 2020 08:15:42 -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=@st.com header.s=STMicroelectronics header.b=qGaTrw5G; 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=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbgBUQOv (ORCPT + 99 others); Fri, 21 Feb 2020 11:14:51 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:30886 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729444AbgBUQOt (ORCPT ); Fri, 21 Feb 2020 11:14:49 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01LGCUZ2018389; Fri, 21 Feb 2020 17:14:26 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=E9Mb7ngTP/ckY+QpFtc5xQAaCA17yjjNEfie0ZjjfD4=; b=qGaTrw5GZf1kCZgxRHU4BDd8dykC3GSYuEMYWIlBPcFeGZHZ2bIdMw0LPrSAPErA4sjz xRXEKNAFircbnm14WNVqPm2+6AI3f+mavYuY8cRgRe5UvPntdyZ6qLgNleeYOAtgmEDe WefAZgSmeaiZAlZoN9PBrlpXRMEGWciOKZ05252u8+nU3QG2rcdOVcc0EnwwbsTtsUg1 WlZw98IUIcSsIXWYcIxP+v0f00qr5VUBQXBEpF56IgmOs4COKJ//InRgrL1yeqhyWK0P fms1UdhM9r1zMDqbyb8xIyqfWBgaykhu2YEXDaead8Y4IPsT5I4y5nhbvmpzkBO8EthA 2A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2y8ub60bse-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2020 17:14:26 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B0F7210002A; Fri, 21 Feb 2020 17:14:20 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A0EE32BE258; Fri, 21 Feb 2020 17:14:20 +0100 (CET) Received: from localhost (10.75.127.49) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 21 Feb 2020 17:14:19 +0100 From: Alexandre Torgue To: , Frank Rowand , Masahiro Yamada , Michal Marek , , CC: , Alexandre Torgue , , , , Ian Lepore Subject: [RFC PATCH v2 0/4] Add device tree build information Date: Fri, 21 Feb 2020 17:14:14 +0100 Message-ID: <20200221161418.20225-1-alexandre.torgue@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-21_05:2020-02-21,2020-02-21 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (with title it's better ;) Hi, 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. A file (dtb-build.txt) 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) is generated by "gen_dtb_build_info.sh" script. This file has to be included manually in each dts file that would like to use this build information. of/fdt.c is modified to printout "build-info" property during Kernel boot and scripts/Makefile.lib is modified to call "gen_dtb_build_info.sh" script. Patch 1 & 2 script and of/fdt.c updates Patch 3 is an example of use in stm32mp157c-dk2.dts file. Patch 4 is a tentative to make it automatic (not yet 100% functional). regards Alex Changes since v1; - Remove modification in dtc (no more -B option) - Generate a file containing build info which is directly included in dts file. Regards Alex Alexandre Torgue (4): scripts: Add script to generate dtb build information of: fdt: print dtb build information ARM: dts: stm32: Add dtb build information entry for stm32mp157c-dk2 script: make automatic dtb build info generation arch/arm/boot/dts/stm32mp157c-dk2.dts | 1 + drivers/of/fdt.c | 9 +++++++++ scripts/Makefile.lib | 3 +++ scripts/gen_dtb_build_info.sh | 12 ++++++++++++ 4 files changed, 25 insertions(+) create mode 100755 scripts/gen_dtb_build_info.sh -- 2.17.1