From patchwork Tue Sep 4 08:05:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145876 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3376250ljw; Tue, 4 Sep 2018 01:06:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHCWeKVdBcUecKL7hd4ja8b2ogkuv2aJf1dW56o+wPGtqiFeQkl/H1nXnspfW3pnoy8uQc X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr30201295pgh.269.1536048415561; Tue, 04 Sep 2018 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536048415; cv=none; d=google.com; s=arc-20160816; b=ECVJSk6FeKjonbQR4pPxThmaaa9vnWoFhARHxjXrUBsibiRvTmzL/KWOE+xSjYYhBc z2xfylBMqBKYedpij3j6nMNF62qRqbLE+cdH17CuHuPmRK3coNfPx795Vu1Qy3byvzQ8 q14nUWL6rVJP8oR6rYUSHMpSlNAm12zDUkwMTwHHoyMiFie7FZfeDE8skHxj+0mVa1Qh K6qnkyNAkvgu8Va9hw7VZ4ntWs79IPhGJV9/dPceWYql3C84/zUDD3zaBPHo34+djs91 RBI7ALC4OJR0jQFgBQ4UDpE8AuuGV6MKS/X5xr7YchyCobEsMFjK0mJGlwlolndHfqz1 reYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; b=vt7YXB8O5BIzimATd3sHxO7yuJazgJTrEbTeBDYe+gkqrpRHP6QfLx+vdnG0koUQLQ 9qRtwOKLLM50mhZPdSiWSo13ORc6JXYCPwfVXAUlNEQHCvAptkDTeObWs4di4vs0I8GE L+Y+FXi8mXaxg8kgwJwxmf0tr2sGs9sxngTLZpIy+MM5901IADp0cJHXQwhjdR78iFfy kb0lLNP96vkgsWApBTbZf6sDpCMXTk+cuawKJitGOdsGGykt3ob8WPwp1+pj4BsIIrv6 bKqITwAGQFsfkPH8DU8IMdBNqyLr6vtO8D1m7gKfXd1soqYWZ13hLNucmCms5MB/kvLW ATDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JSJGacDV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si22338248pfd.319.2018.09.04.01.06.55; Tue, 04 Sep 2018 01:06:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JSJGacDV; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726284AbeIDMax (ORCPT + 6 others); Tue, 4 Sep 2018 08:30:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45548 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbeIDMax (ORCPT ); Tue, 4 Sep 2018 08:30:53 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8486V82107134; Tue, 4 Sep 2018 03:06:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536048391; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JSJGacDVtkyvNwL24oNANkSUJ46lxc4GqDe3Qu+sHHZNgOpSW9yw2eXjpixqXCjCN dsg4aQsR5yx43Ud12jlurafuRABoOh+cdiI+zrnJbPmYN1z95dhoh3zkKEEaOlWTc9 LPkeayjTSrsx+0qkHsxJc3n5EmnfDfbL6qjfge88= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486VYH003802; Tue, 4 Sep 2018 03:06:31 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 4 Sep 2018 03:06:30 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 4 Sep 2018 03:06:30 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8486FX2005423; Tue, 4 Sep 2018 03:06:28 -0500 From: Tero Kristo To: , , , , CC: , , , Subject: [RESEND PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Tue, 4 Sep 2018 11:05:44 +0300 Message-ID: <1536048344-9995-5-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536048344-9995-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-1-git-send-email-t-kristo@ti.com> <1536048344-9995-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the makefile for arm64 builds all the DT files based on rules in the arch/arm64/boot/dts/Makefile, as this is statically passed via the $(build)= parameter. Change the $(build) parameter to actually point to the subdir itself, so the makefile from that subdir can be used to set-up build flags etc., for example setting up DTC_FLAGS. The patsubst magic is used to strip the trailing "/" from the path, as that confuses the kbuild system. Signed-off-by: Tero Kristo --- arch/arm64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f04c814..2ac4358 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -128,7 +128,7 @@ zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ %.dtb %.dtbo: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ + $(Q)$(MAKE) $(build)=$(patsubst %/,%,$(boot)/dts/$(dir $@)) $(boot)/dts/$@ PHONY += dtbs dtbs_install