From patchwork Thu Mar 19 03:39:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 6045571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 229A69F2A9 for ; Thu, 19 Mar 2015 03:41:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52632204D9 for ; Thu, 19 Mar 2015 03:41:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A615204D3 for ; Thu, 19 Mar 2015 03:41:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYRJZ-0007eX-Cz; Thu, 19 Mar 2015 03:40:09 +0000 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YYRJR-00079l-Az for linux-arm-kernel@lists.infradead.org; Thu, 19 Mar 2015 03:40:02 +0000 Received: by pdbcz9 with SMTP id cz9so62713917pdb.3 for ; Wed, 18 Mar 2015 20:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vVRMzq7lrZDQcc7Z8nYWvQ5tjqpr5BMACad0hqhv3Es=; b=XaE+Rz8sHF5d1kG3KK314ctwZ8y71NjO78kMIhtYDPECgbjZYjMF1RjLNcUkme+UWd QCpasKEMnyuSmFwUsc7OUM91Usr6PcIEhBHx4BdfW4Zh6RaMMy7h9hQsYa8xQFjl1Ve1 jkMopgImLfqCVsmVm6b9MGtc6G+08NVTtRvZGEb/lXxjxTsJ+wsKP9JdUch2hE1JKTWJ aftSFFyBlCdg0YhNDPSjpyOyHnfM9EUz8NzynmT0SX8txSD1PtUpJhi+hOOK86yen83/ ES99u5wWPf65AJNQWSJvCAq+MY8fIsTd3XiATNobDH+Siu1vcxthRlbGC5ty/UQAcIuC F5Ww== X-Received: by 10.70.53.137 with SMTP id b9mr172175324pdp.69.1426736380075; Wed, 18 Mar 2015 20:39:40 -0700 (PDT) Received: from [172.26.79.213] ([64.211.224.253]) by mx.google.com with ESMTPSA id os6sm142209pac.28.2015.03.18.20.39.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 20:39:39 -0700 (PDT) Message-ID: <550A44F9.9060504@gmail.com> Date: Wed, 18 Mar 2015 20:39:37 -0700 From: Frank Rowand User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: frowand.list@gmail.com, Rob Herring , Grant Likely , Russell King , Michal Marek Subject: [patch 6/7] dt: dtb version: dtsi files References: <550A42AC.8060104@gmail.com> In-Reply-To: <550A42AC.8060104@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150318_204001_462988_8C6640A1 X-CRM114-Status: GOOD ( 10.39 ) X-Spam-Score: -0.8 (/) Cc: Mark Rutland , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , linux-kbuild@vger.kernel.org, Linux Kernel list , Leif Lindholm , Kumar Gala , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: frowand.list@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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