From patchwork Tue Aug 28 12:32:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145316 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1133288ljw; Tue, 28 Aug 2018 05:33:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYfooJlB8SJCNZ9CgYP4LO5DKoE7Hu8WCk/q03NpH9QJSKfhndebl9IMM9+GasVNnsLJBWx X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr1356914pgv.387.1535459608444; Tue, 28 Aug 2018 05:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535459608; cv=none; d=google.com; s=arc-20160816; b=TjzipdAXlVHm4Cw+j8zjqj/BepsJgY844Z4aiiOk2DPWREF6BxAC3sQk+Fqfa1YRWH JVvVFkRtnU65uXVyYyDVYDeOQQskP2KR6uzsOy1NlXhzh/5kCGIYD42wd08isorSBarT QxAo55EDWDSbHf2OuD3f1I2SmDk7oWnjLThWbHLMge8XP80C70SuPAa5BVYbcYeG6YHn 1dN7Y+/TeHoAyQ1q200d3RBHHlPX6nTTZLN44P63LuGBhHaf4Mm+oADhLb/R6TVCXM6y 59R79OKFzg5ZvndXGSnB1U3itDdIzfSgtFGtL0KuQ7qAVhs/4aVE5OLy4RtMX4a9FIGP mTNg== 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=EXdKmUt56bXUFKVAEIgV4q6jykPSLR1ARiXWch2M00keeMWX7uIwD99J8yY1VgCrcb 8EXocab8TeVG6wEGFOzrihzrLN0AOtwVElPy9oGN7AwVnnIwz3p+TpT8boBGHcvVHXdO HoO8kLjV/P5UM2xaA9twiQZYusHhUH5KWYWTve1N6Rag1Zqxp4HIVSiQAqnysYgkby5p /l0NvDEjBRyKWkmZDhYx/zAzfVo9Dzjo+yVXBr0aZZziXGpS3KhskKSWZl5tGOGaJgSN 2wu7EGpXGZxDtgTukp1wUOtdaGe2P06y5YhdMgVTkrgPx0E+lzKoQjqSS0BbfRqtCFXY bdYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="y/6VbmjQ"; 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 t71-v6si879370pfi.221.2018.08.28.05.33.28; Tue, 28 Aug 2018 05:33:28 -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="y/6VbmjQ"; 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 S1727215AbeH1QYy (ORCPT + 6 others); Tue, 28 Aug 2018 12:24:54 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:42908 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbeH1QYy (ORCPT ); Tue, 28 Aug 2018 12:24:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7SCWq2M066703; Tue, 28 Aug 2018 07:32:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535459572; bh=L8A5hd3oA1EAPEVovLBy8nxVXejsXKBPxshM1+fTl9M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=y/6VbmjQEuf+Dbutbp/VRPj4q8zvySWaFLHc6xMarNKpD/r2B0JTBAN/eQuIQfEwX RaIIITSDOfo6k2U91YllvqtzgJ8FGdlvEDNW9MFAntBFoD6coCaIyBilaI/wEP7Rxw lmKEu5aV7+McNbCwzokHqiN6p787qakbCyYnj33M= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7SCWqXe032397; Tue, 28 Aug 2018 07:32:52 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 28 Aug 2018 07:32:51 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 28 Aug 2018 07:32:51 -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 w7SCWaPw018414; Tue, 28 Aug 2018 07:32:49 -0500 From: Tero Kristo To: , , , , CC: , Subject: [PATCH 5/7] arm64: dts: add support for per sub-dir makefiles for DT building Date: Tue, 28 Aug 2018 15:32:10 +0300 Message-ID: <1535459532-17211-6-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535459532-17211-1-git-send-email-t-kristo@ti.com> References: <1535459532-17211-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