From patchwork Fri Aug 29 13:49:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 4810971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AE186C0338 for ; Fri, 29 Aug 2014 13:59:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 537CD2010B for ; Fri, 29 Aug 2014 13:59:17 +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 1391D20103 for ; Fri, 29 Aug 2014 13:59:16 +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 1XNMfZ-0002tZ-Px; Fri, 29 Aug 2014 13:56:49 +0000 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XNMfX-00020K-CO for linux-arm-kernel@lists.infradead.org; Fri, 29 Aug 2014 13:56:48 +0000 Received: by mail-wg0-f44.google.com with SMTP id m15so2184387wgh.15 for ; Fri, 29 Aug 2014 06:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=oVOY5Tw8w3DsOxB0q4pQEWo1kXh/k4kw+bY1x9BYc9I=; b=GkF067vEc+x/OIGi7k8cABzCDh+MH+0EbDIxDBlOoM+uZICwDR6t1t794/8gtpFlvS K+Mk0fD6YWlZMoPp9+PFS3rR6wtS+S5Z698tuJEf/4lwbiD2wBSNN0Bztj1BoqX3bxdj giREXkE7C/7h6Uj6Uz2zaw38Tjmd9teVYJyPk7TNHjxbGRgLdLMr30g2vuAe8x6ObnPr JR49MxSYHaiuA5nxfcIOsPt7PGpr9+D1EnhRi/C4W7FyMv8g5BeOOVggjJx4gLP2P5Pw RD0ziUpgedCFR+PpIkRLForTgFXEyU5eONmlN9kOsxv0ytGUMEPwdEgVBn4n16wcJZgZ kmDA== X-Received: by 10.180.184.133 with SMTP id eu5mr4078993wic.26.1409320186532; Fri, 29 Aug 2014 06:49:46 -0700 (PDT) Received: from rric.localhost (f053086220.adsl.alicedsl.de. [78.53.86.220]) by mx.google.com with ESMTPSA id iy10sm4557238wic.8.2014.08.29.06.49.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 29 Aug 2014 06:49:45 -0700 (PDT) Date: Fri, 29 Aug 2014 15:49:42 +0200 From: Robert Richter To: Olof Johansson Subject: [PATCH] arm64, dts: Add dtbs_install make target Message-ID: <20140829134942.GP4703@rric.localhost> References: <1406732794-20920-1-git-send-email-rric@kernel.org> <1406732794-20920-3-git-send-email-rric@kernel.org> <20140828161556.GN4703@rric.localhost> <20140828162549.GP14650@leverpostej> <20140828181429.GO4703@rric.localhost> <20140829121023.GW13038@rric.localhost> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140829121023.GW13038@rric.localhost> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140829_065647_598982_927B2E6A X-CRM114-Status: GOOD ( 17.17 ) X-Spam-Score: 0.0 (/) Cc: Mark Rutland , "devicetree@vger.kernel.org" , Pawel Moll , Arnd Bergmann , Ian Campbell , Catalin Marinas , Will Deacon , "linux-kernel@vger.kernel.org" , Robert Richter , Rob Herring , Kumar Gala , Radha Mohan Chintakuntla , "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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no 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 Olof, On 29.08.14 14:10:23, Robert Richter wrote: > On 28.08.14 16:01:08, Olof Johansson wrote: > > Thinking about it a bit more, the even more obvious solution that I > > for some reason didn't think of at the time, is to have the > > dtbs_install target create the appropriate subdirectories on the > > install side, so that the structure is preserved. > > > > That comes a bit closer to how modules are handled as well. > > Yes, dtbs_install target would be useful. > > Will come with a solution for this too. below is a patch that adds the dtbs_install target to arm64. Taken from arm where this was already implemented. -Robert From bbb09a3775a385f4a549b1c4b8518658bcbc382d Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Fri, 29 Aug 2014 14:17:02 +0200 Subject: [PATCH] arm64, dts: Add dtbs_install make target This adds the dtbs_install make target to arm64. The target has been introduced already to arch/arm with the following commit: f4d4ffc03efc kbuild: dtbs_install: new make target Implementation for arm64 is the same as for arm. With 'dtbs_install' all config enabled dtb files are installed to either the INSTALL_DTBS_PATH directory or the default location: $INSTALL_PATH/dtbs/$KERNELRELEASE Signed-off-by: Robert Richter --- arch/arm64/Makefile | 6 ++++-- arch/arm64/boot/dts/Makefile | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 8185a913c5ed..c68efa07c5f3 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -66,8 +66,9 @@ zinstall install: vmlinux %.dtb: scripts $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ -dtbs: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts dtbs +PHONY += dtbs dtbs_install +dtbs dtbs_install: prepare scripts + $(Q)$(MAKE) $(build)=$(boot)/dts $@ PHONY += vdso_install vdso_install: @@ -81,6 +82,7 @@ define archhelp echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo '* dtbs - Build device tree blobs for enabled boards' + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)' echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' echo ' Install using (your) ~/bin/installkernel or' diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index f8001a62029c..3a75cdc2d087 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -2,9 +2,11 @@ dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb -targets += dtbs +targets += dtbs dtbs_install targets += $(dtb-y) dtbs: $(addprefix $(obj)/, $(dtb-y)) clean-files := *.dtb + +dtbs_install: $(addsuffix _dtbinst_, $(dtb-y))