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: 6045521 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CB062BF90F for ; Thu, 19 Mar 2015 03:39:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED3BC204D1 for ; Thu, 19 Mar 2015 03:39:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B8DC204D3 for ; Thu, 19 Mar 2015 03:39:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbbCSDjl (ORCPT ); Wed, 18 Mar 2015 23:39:41 -0400 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 Received: by pabyw6 with SMTP id yw6so62276280pab.2; 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 Reply-To: frowand.list@gmail.com 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 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 Subject: [patch 6/7] dt: dtb version: dtsi files References: <550A42AC.8060104@gmail.com> In-Reply-To: <550A42AC.8060104@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 +++++ -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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