From patchwork Thu Aug 27 15:56:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 7085861 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 0A3D59F358 for ; Thu, 27 Aug 2015 15:59:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 287FA20953 for ; Thu, 27 Aug 2015 15:59:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5437E208F4 for ; Thu, 27 Aug 2015 15:59:28 +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 1ZUzY9-0002h1-5x; Thu, 27 Aug 2015 15:57:13 +0000 Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUzY6-0002Yb-VE for linux-arm-kernel@lists.infradead.org; Thu, 27 Aug 2015 15:57:11 +0000 Received: by oigm66 with SMTP id m66so8621231oig.0 for ; Thu, 27 Aug 2015 08:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=UMMrNqieEpJKdhUBvPn98YA9eUcPgOoBLmJ3aAcY1fU=; b=uwT0A/RmWXgAtU2N1eq7SFTGMax1f8pOGpC7/4mNiIdn3mCpPc3vltfKzjZyFgd5oU oEOvbyPWLBrrNofzykVgLb6Q3rnKI+3oLl9aYHx9Sx/pVKvkWXXrfr/HscUO6W3CppTK cK+pCO38l+1n5eUZETv7hpfC3FiGuBTxMnaPQ8L9deVLEdMwQzE0d+dfhSdXzhu1C+4p ssOMpokiYuwJ9ZZk/4cypkF40Pv2CqfQyHrzX4Fr9ZWpMc+0B3ytkkyANUPwWgrizIN5 a4wG9EJA9obJzTZ+AcSjZIurTktglSU0CKCO7KbeqRjVIJ0rsbEnWK2y65rwMfan5Qsp oufw== X-Received: by 10.202.220.86 with SMTP id t83mr3124984oig.24.1440691009590; Thu, 27 Aug 2015 08:56:49 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id op6sm1551609obb.11.2015.08.27.08.56.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Aug 2015 08:56:49 -0700 (PDT) From: Rob Herring To: arm@kernel.org Subject: [RFC PATCH] arm/arm64: build all dtbs for CONPILE_TEST Date: Thu, 27 Aug 2015 10:56:34 -0500 Message-Id: <1440690994-5978-1-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150827_085711_054814_962137EF X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: -2.3 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Russell King , Rob Herring , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Enable building all dtb files when COMPILE_TEST is enabled. The dtbs are not really dependent on a platform being enabled or any other kernel config, so for testing coverage it is convenient to build all of the dtbs. This builds all dts files in the tree, not just targets listed. This is simpler for arm64 which has a bunch of sub-dirs. Signed-off-by: Rob Herring Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon --- I've had this on my todo list for a while. RFC for now as I want to do the rest of the arches as well. I was originally thinking a new target for this, but thanks to Olof for the COMPILE_TEST suggestion. Rob arch/arm/boot/dts/Makefile | 4 ++++ arch/arm64/boot/dts/Makefile | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 246473a..4968442a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -712,5 +712,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb endif +dtstree := $(srctree)/$(src) + +dtb-$(CONFIG_COMPILE_TEST) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) + always := $(dtb-y) clean-files := *.dtb diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index 38913be..9f19390 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -11,3 +11,9 @@ dts-dirs += sprd dts-dirs += xilinx subdir-y := $(dts-dirs) + +dtstree := $(srctree)/$(src) + +dtb-$(CONFIG_COMPILE_TEST) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts))) + +always := $(dtb-y)