From patchwork Fri Aug 31 12:47:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145604 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp739429ljw; Fri, 31 Aug 2018 05:48:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaICZygmoDX4EyYK8tFWgnZDC4SGahGbP0pBTJYdE3ysqKGhiMx88Uqwf0tW/tCPL8sva07 X-Received: by 2002:a63:4b1f:: with SMTP id y31-v6mr14089247pga.14.1535719716465; Fri, 31 Aug 2018 05:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535719716; cv=none; d=google.com; s=arc-20160816; b=wcW7Phmj3bL6ksQjWCTSm6T8KYVJ/V1yNtbKM/E4AFNU5CfALvokL6GH6nxrFheCuc 2dcCFQY03tZEDVmJaUKi/oYNsRYwIl3R8/coOunM9Ucyqg5k0GTt8n1iVy1fOTG//bps q/GAmEWY7sMXJ0ZpU9Kt7wItbYOkjwy+L4CbXR+4y/n+F43YB9Bd9cbQj5aCjAGsFYD7 kYxKZWMll7oYSN4Vda8z6r6+trVPZQSnedRrlCeCbQlhlOExH2OGOG8jq1J/H6VMvZUI hJeTuSgfo6PL5MRCFGQWE9xEF6WiAkvLXwVG2UUD/FMnuNdVpEyW+TJf5+5+uCt51+NY DkfQ== 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=rZYhg8SOKDYwFi6NT8L1hF4sEDIxav4rNE9hLC/7oTdEO6oxuTxcu9LvWnnQNARLO2 dJR+BspAHLkC2weLz35CiZGmLnyDV/pbi51kHSPXAlqc/jNZPR0It/k3gMVZCuxA+bVe +/3+YX2/rMh19ASWF3SPF76OwSuPpx6v+5q7fC3hUzV4WYulmAk94A6SMxqVkqdYzeng WAhK37bOLMDxGmNQhbED1LjRyIv0KSLSXyJm/M17zWShdcEYFsiPkQAPehBeEGeV3/YH MkB7cNO1t2hDZiclt9l/1kKzjZTTivNU35gzJT2wp17BwTxM0jhEJynnB8t1mRv5k/o6 /eSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fL360lPS; 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 y10-v6si6451183pgk.672.2018.08.31.05.48.36; Fri, 31 Aug 2018 05:48:36 -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=fL360lPS; 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 S1727881AbeHaQzz (ORCPT + 6 others); Fri, 31 Aug 2018 12:55:55 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:60434 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbeHaQzz (ORCPT ); Fri, 31 Aug 2018 12:55:55 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7VCmItk096977; Fri, 31 Aug 2018 07:48:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535719698; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fL360lPS1vp8LbCu8KoQJbBRyrS0c+uAi7Rt+YWZXW89q28zcO4kYyunRdpWt+8J1 +qAt/gFhrZn55aXrUSjLaA1ILjxbDbeC3OTCRGOO4tGPzyQEO8ZNUzp8BgpmNOqdvO BLV974XaOcoR35ba4OOnQyl9q5/dT0MSWQR/SLbw= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCmHAK032547; Fri, 31 Aug 2018 07:48:17 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 07:48:17 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 07:48:17 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VCm3JO006892; Fri, 31 Aug 2018 07:48:14 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv2 4/4] arm64: dts: add support for per sub-dir makefiles for DT building Date: Fri, 31 Aug 2018 15:47:46 +0300 Message-ID: <1535719666-13595-5-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535719666-13595-1-git-send-email-t-kristo@ti.com> References: <1535719666-13595-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