From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com ([209.85.220.54]:35177 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbbCSDjk (ORCPT ); Wed, 18 Mar 2015 23:39:40 -0400 Message-ID: <550A44F9.9060504@gmail.com> Date: Wed, 18 Mar 2015 20:39:37 -0700 From: Frank Rowand Reply-To: frowand.list@gmail.com MIME-Version: 1.0 Subject: [patch 6/7] dt: dtb version: dtsi files References: <550A42AC.8060104@gmail.com> In-Reply-To: <550A42AC.8060104@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: frowand.list@gmail.com, Rob Herring , Grant Likely , Russell King , Michal Marek Cc: Ian Campbell , Kumar Gala , Leif Lindholm , Mark Rutland , Pawel Moll , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-kbuild@vger.kernel.org, Linux Kernel list From: Frank Rowand Create a .dtsi file to contain the /chosen/dtb-info node and populate the properties in that node. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/skeleton.dtsi | 2 include/dt-bindings/version.dtsi | 19 +++++ Index: b/include/dt-bindings/version.dtsi =================================================================== --- /dev/null +++ b/include/dt-bindings/version.dtsi @@ -0,0 +1,19 @@ + +#include +#include +#include + +/ { + chosen { + dtb-info { + version = UTS_RELEASE, " ", DTB_VERSION; + version-linux = + UTS_RELEASE, + " (", LINUX_COMPILE_BY, "@", LINUX_COMPILE_HOST, ") ", + "(", LINUX_COMPILER, ") ", + UTS_VERSION; + dtb-path = ___DTB_DTB_PATH; + dts-path = ___DTB_DTS_PATH; + }; + }; +}; Index: b/arch/arm/boot/dts/skeleton.dtsi =================================================================== --- a/arch/arm/boot/dts/skeleton.dtsi +++ b/arch/arm/boot/dts/skeleton.dtsi @@ -11,3 +11,5 @@ aliases { }; memory { device_type = "memory"; reg = <0 0>; }; }; + +#include From mboxrd@z Thu Jan 1 00:00:00 1970 From: frowand.list@gmail.com (Frank Rowand) Date: Wed, 18 Mar 2015 20:39:37 -0700 Subject: [patch 6/7] dt: dtb version: dtsi files In-Reply-To: <550A42AC.8060104@gmail.com> References: <550A42AC.8060104@gmail.com> Message-ID: <550A44F9.9060504@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Frank Rowand Create a .dtsi file to contain the /chosen/dtb-info node and populate the properties in that node. Signed-off-by: Frank Rowand --- arch/arm/boot/dts/skeleton.dtsi | 2 include/dt-bindings/version.dtsi | 19 +++++ Index: b/include/dt-bindings/version.dtsi =================================================================== --- /dev/null +++ b/include/dt-bindings/version.dtsi @@ -0,0 +1,19 @@ + +#include +#include +#include + +/ { + chosen { + dtb-info { + version = UTS_RELEASE, " ", DTB_VERSION; + version-linux = + UTS_RELEASE, + " (", LINUX_COMPILE_BY, "@", LINUX_COMPILE_HOST, ") ", + "(", LINUX_COMPILER, ") ", + UTS_VERSION; + dtb-path = ___DTB_DTB_PATH; + dts-path = ___DTB_DTS_PATH; + }; + }; +}; Index: b/arch/arm/boot/dts/skeleton.dtsi =================================================================== --- a/arch/arm/boot/dts/skeleton.dtsi +++ b/arch/arm/boot/dts/skeleton.dtsi @@ -11,3 +11,5 @@ aliases { }; memory { device_type = "memory"; reg = <0 0>; }; }; + +#include