From patchwork Mon May 15 11:14:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 99808 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1492694qge; Mon, 15 May 2017 04:19:16 -0700 (PDT) X-Received: by 10.84.233.200 with SMTP id m8mr7640269pln.118.1494847156731; Mon, 15 May 2017 04:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494847156; cv=none; d=google.com; s=arc-20160816; b=aqjSmn9tk0SZa4UHaxlQXAzYyl7jPCmLtHclmPJDwPVClEhk6riLMH0oyY08I+MWVb J1HuX1cmgtRka5xGSMOeIGUQYeEHYkafU2saMkbMnSNEcd1H1InNliCnxDv+TYyB9MhP 0nA2X8kQhJIc6YpxR2qYhoRP4y3BvIulJo1SuSkJWpMVlYqdH656x5lRX9ngV2k3A6B7 15MvMaV3XvKU71AYop2rt7cCgZ1eDQuOTIxgiLebF8OFthtsZ7q2sIN6oCVB8YH2Xw0g jqdi0Kf4MwuPUeevTuy6BQqVFbLrVQTWaj1xhPA7lkaa9CbYVW84z229awy2evPh8Wtq kPYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=rm+dm9MA8qh077tD/9XvTn9G7PScJilcB6iEZPbUBUQ=; b=KHqzYRywmJDUb8ENfALAkyLikLW7LT/4/dP+0NMO8MgObIGbhYyG8XQ+EyrFD7+KX4 i9Am0XgZL+fv3+Z+8FA1QS9DOeGH/s7Vg02VdMGZTLDrIrDL/WLZ1Ha9TepZk7H1weK1 sr/cFKCON1c8xXrGhc8BaC1j3rMRdLh+FVRbLSmB2NrL/HGayHtt4tFPVwaLfrnSrzME QhKbEXpAQ1RfTDVV8yAZ6fYNX97EjUJbquC5ZgLXv1IM1ihCiye7CADGKR8LBQfHjq5S Tb/M0mT0m/LaFLOdS0kKqdVOfK+ydK4l4j6BrcKDb5kIOtKRtL85HxAuZ1d81ovYUmXR 7TjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w68si10257435pgw.334.2017.05.15.04.19.16; Mon, 15 May 2017 04:19:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934404AbdEOLSr (ORCPT + 25 others); Mon, 15 May 2017 07:18:47 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:41141 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933176AbdEOLSk (ORCPT ); Mon, 15 May 2017 07:18:40 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v4FBF4M8008781; Mon, 15 May 2017 20:15:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v4FBF4M8008781 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1494846908; bh=rm+dm9MA8qh077tD/9XvTn9G7PScJilcB6iEZPbUBUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QVRgBfvVzcY0V+7MeerZHJF4Izt7Mv8YEXYn4lsqbC8llz614PHRbDbkOPXz6j0XU bVTZ+yHBmWUwiXGzGRqWchgsp+d4n9gM13GzTcdCYME6vkALnbWfUYobOuJvhhf9PE 42QXoPdDIHfWJ9WWeW+HUdto5LuNdyQFzcpUQPfKcrgq2NKfVs38KwNXurUQJwe4SW 0YkR99jVuRLJ6YwzkG/utCQ3stFW79C4IYGgkiZZSyaSSaVVLHmuUYxVLARfGfJU1Y 4RqkGeq5w0FHZHUU7r5Jsd6cDLZCUEwQ2bsiOvmoiWkZC3ZfpK9fKPuSbwcCIjT1Fj Q3zQamhGSWU3Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org Cc: linux-arch , Omar Sandoval , Gaurav Minocha , Grant Likely , Frank Rowand , Mark Rutland , Olof Johansson , Russell King , Masahiro Yamada , Fabio Estevam , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Shawn Guo Subject: [PATCH 2/5] ARM: dts: use #include "..." to include DT in the same directory Date: Mon, 15 May 2017 20:14:45 +0900 Message-Id: <1494846888-18966-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> References: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of DT files in ARM use #include "..." to make pre-processor include DT in the same directory, but we have 3 exceptional files that use #include <...> for that. They must be fixed to remove -I$(srctree)/arch/$(SRCARCH)/boot/dts path from dtc_cpp_flags. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/imx6q-zii-rdu2.dts | 4 ++-- arch/arm/boot/dts/imx6qp-zii-rdu2.dts | 4 ++-- arch/arm/boot/dts/versatile-pb.dts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/arch/arm/boot/dts/imx6q-zii-rdu2.dts b/arch/arm/boot/dts/imx6q-zii-rdu2.dts index b2d3466..6be8a1e 100644 --- a/arch/arm/boot/dts/imx6q-zii-rdu2.dts +++ b/arch/arm/boot/dts/imx6q-zii-rdu2.dts @@ -41,8 +41,8 @@ /dts-v1/; -#include -#include +#include "imx6q.dtsi" +#include "imx6qdl-zii-rdu2.dtsi" / { model = "ZII RDU2 Board"; diff --git a/arch/arm/boot/dts/imx6qp-zii-rdu2.dts b/arch/arm/boot/dts/imx6qp-zii-rdu2.dts index 882b3bd..547a766 100644 --- a/arch/arm/boot/dts/imx6qp-zii-rdu2.dts +++ b/arch/arm/boot/dts/imx6qp-zii-rdu2.dts @@ -41,8 +41,8 @@ /dts-v1/; -#include -#include +#include "imx6qp.dtsi" +#include "imx6qdl-zii-rdu2.dtsi" / { model = "ZII RDU2+ Board"; diff --git a/arch/arm/boot/dts/versatile-pb.dts b/arch/arm/boot/dts/versatile-pb.dts index 33a8eb2..06e2331 100644 --- a/arch/arm/boot/dts/versatile-pb.dts +++ b/arch/arm/boot/dts/versatile-pb.dts @@ -1,4 +1,4 @@ -#include +#include "versatile-ab.dts" / { model = "ARM Versatile PB"; From patchwork Mon May 15 11:14:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 99805 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1491923qge; Mon, 15 May 2017 04:17:11 -0700 (PDT) X-Received: by 10.84.236.72 with SMTP id h8mr7816328pln.187.1494847031759; Mon, 15 May 2017 04:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494847031; cv=none; d=google.com; s=arc-20160816; b=c67/wACrs/eWrCpbZndC0qoh+vx5cJAyUnkFeSsEa0mrCtxUmxIUNQFbHEJ+6j23hk K4I2GEuBCFXXC9dihkN8wxxL2JPH83zCs2R4lzRJeY6K639M2PEMoYSTIP9O8UjGb3Fm AKxpB3lryKK6z0qjH82cVHFVUT+0cIM1Ph0Cn5NEq0gSbsj0eWvU1HKjF1Xqf98ty+Tb KzL6u2+grAiaVFCuomySfM6V3NAOVOns6S7gXh6U4szrBc2s52xd469CoJnAPz2YfY88 aMNGhJMPUtw+a9NxpkIhkM1eEekyvQBQaEu25zLvQPM2xaw30x6tWNKW1nMbUVfoU19t NYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=q7sOE+L0pm8KM/7tsFZLsqmd84MSveHXRlgDv8GUoVg=; b=Q9cQ0A4KTtaXI7F2q55e8GJwIsz89QDLk+El99CX6gjC82EZNpPCMJYudsUH9SZmK8 qH+aWevIxiMku/gAivS+ib2fP6bXhkoAQgMOmkADB1oReQ/QP6mKMfT4PD7J3JvcixVq vEtdG0ZjXP26oCLUcuC79YwwOYZgHkQrL8+FWfCd7z7Hcx/w2C9KGCp8HrF0r99w30mj Oie+4KnhJodVguMFKNg7TD2Sh+/IKb+jNHSjel0VSZvd/CnMmpglgYALdNbh6guq3eWf 26qXKkzqap36qismcYEKW6PX4NGgpcTlED3HdEtEfiEv3xGMUbOSD1KimxtU5S1Cl/pD 4ACg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si9889122pgn.381.2017.05.15.04.17.11; Mon, 15 May 2017 04:17:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934363AbdEOLQt (ORCPT + 25 others); Mon, 15 May 2017 07:16:49 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:37286 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934212AbdEOLQj (ORCPT ); Mon, 15 May 2017 07:16:39 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v4FBF4MA008781; Mon, 15 May 2017 20:15:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v4FBF4MA008781 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1494846911; bh=q7sOE+L0pm8KM/7tsFZLsqmd84MSveHXRlgDv8GUoVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b6ZUwbkPSZf2kFzx1aXBxMtiRTKp970i+jlOqDgzJX8n/aOxhV+K+6qn9oEoI4PbO z4DiZSGmH+5vAhARFL6PyAPtE8Km2hTAtWKmxEMmmHPj+BkGjlgDBfCZq7EU+CB0NQ SJDmNTZZ57StilhHNBZ19FLfxlKLMtB3vChahBghpPfOn+SGYX65fwrXnpTMuIhEBf 0wzb472C7OBVjfWB+ip4Pnqq+Vy2/nqSckvOJv6WiRT993swdxQUbaF3kpW66sMytE UidhDszeAnYPcyor8WcWXlo4FWUA+Xwt3JG+y9xVg0LhZpzTEd2w17/peU9iEu1x7T LA9sqgYE8VKMw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org Cc: linux-arch , Omar Sandoval , Gaurav Minocha , Grant Likely , Frank Rowand , Mark Rutland , Olof Johansson , Russell King , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 4/5] of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP Date: Mon, 15 May 2017 20:14:47 +0900 Message-Id: <1494846888-18966-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> References: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Having arch/$(SRCARCH)/boot/dts as an include search path is not very useful these days because some architectures such as ARM64, MIPS have no DT in this directory. Instead, they have DT in vendor sub-directories. With some DT files in ARM and PowerPC fixed, we can now drop this include search path. Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 011d464..9c8f38a 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -174,7 +174,6 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \ ld_flags = $(LDFLAGS) $(ldflags-y) dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ - -I$(srctree)/arch/$(SRCARCH)/boot/dts \ -I$(srctree)/scripts/dtc/include-prefixes \ -undef -D__DTS__ From patchwork Mon May 15 11:14:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 99806 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1491927qge; Mon, 15 May 2017 04:17:12 -0700 (PDT) X-Received: by 10.99.121.200 with SMTP id u191mr5510656pgc.113.1494847032149; Mon, 15 May 2017 04:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494847032; cv=none; d=google.com; s=arc-20160816; b=El5sJ6+sEMepbEpvQb+TV/7084Qzta/iwvLrfZK4Os2b/qxAaguNPoSuynEzzUhzSj gWPRgJrXYgVQVYLCwXwT5QKzo9RJOh/apfGHXQ7iAbwiX38+NjiCba7oVlFne0opV9O0 mH/CvrnLg9LZNROokU9/t3JpXkxvwMyLLaamzkLRdIgrM6F+ZZYClnExxlcHr/ioTzB7 U13fYHCKu6MLzidLXP/Nu8XIdY0c2znGm+CvIRJiqDs0wS38K4FREfrmjbs28xA+Csgv On0WC5c5cee7MYPLC9vu/vm/PoA2EmmmfzS9ggnVrE2w6P+5QxCVDGlQeHwc9aE/fQXd 73Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=4MPuyQfHg6ukxfFuAZCC5kI+gi25Jz5Z5CXJ+dGr4c4=; b=F4k3wQQxdpGm5oFc+twu974GziTkgLl3NA0FFaLAezo68vKtTwvJn2ANpCKuMzJ5ah 8RDcPvxg1o1vrJ2AUbUp2RI+UxYZBrCAGDtqx3QR8qeXwuZKUrUe+WdkYl0hl2VkZ6ut nJIIIrPj9KCvQQx+yfArGTPqt9BUPYpNTSTReJOKy4ZHPLxcyTBOp/zPYA+Z1FTm9eHx BuEvJdHP/WEV0gIH98f0RWBtrWyTcF0oG6gBZKCMMskxImwGMMXNbnsQnBnxNf4T1sNJ bNc4vt2Ue8HcWElgQx6/mYqs3V1vem07p/uU/aX3eJLqD7zc/Ye7+xcg+tmFCs3l73FQ waiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si9889122pgn.381.2017.05.15.04.17.11; Mon, 15 May 2017 04:17:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934382AbdEOLRA (ORCPT + 25 others); Mon, 15 May 2017 07:17:00 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:37284 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934313AbdEOLQj (ORCPT ); Mon, 15 May 2017 07:16:39 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v4FBF4MB008781; Mon, 15 May 2017 20:15:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v4FBF4MB008781 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1494846912; bh=4MPuyQfHg6ukxfFuAZCC5kI+gi25Jz5Z5CXJ+dGr4c4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jy9/SORE4MjsZ4J2JkeZOyC97xjk2bNvZsUocWVup7R+N7tyZ4LOqn2oCcg8fx7xX FzP1Uz1MjzOeYqxAdCSJVyY5d0YOgYhAArNY8O/6dvWaYMMiH9l+dTF0lo7KgRRuIB P5ts4p0D2z0gxPJThUIGLITvw+8PW2/JH8eZk9riQfRbMs923XNxZQSYmZEyPicMa+ uILw15oS71wBgOzm0CD2vpW4nWlJUyer7xvAxVU1rvJq4JT0bmhfmx44jOaDsiZ7s+ ldWXaMOQteH7D/d4dks9ZWd3TSFExPaVv/q55SYYo532HAkAZ9yBytBcQrwxYzLMEP ZZZICtGKGM/aw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org Cc: linux-arch , Omar Sandoval , Gaurav Minocha , Grant Likely , Frank Rowand , Mark Rutland , Olof Johansson , Russell King , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 5/5] of: add scripts/dtc/include-prefixes to search path for both CPP and DTC Date: Mon, 15 May 2017 20:14:48 +0900 Message-Id: <1494846888-18966-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> References: <1494846888-18966-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We had include/dt-bindings as an include path only for CPP, and this makes sense because header files in dt-bindings contain useful macros that parsed by pre-processor. Commit 4027494ae6e3 ("ARM: dts: add arm/arm64 include symlinks") and commit 0a6081b673bb ("arm64: dts: add arm/arm64 include symlinks") allow us cross-arch DT reference, but this is only available for CPP's include directives, like #include It makes as much sense to include DT from another architecture by DTC's builtin include directive, like /include/ "arm/foo.dtsi" To achieve this, scripts/dtc/include-prefixes should be passed to both CPP and DTC. I refactored Makefile.lib a bit to not repeat the same path. Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 9c8f38a..dcc0d5f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -173,8 +173,10 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \ ld_flags = $(LDFLAGS) $(ldflags-y) +DTC_INCLUDE := $(srctree)/scripts/dtc/include-prefixes + dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ - -I$(srctree)/scripts/dtc/include-prefixes \ + $(addprefix -I,$(DTC_INCLUDE)) \ -undef -D__DTS__ # Finds the multi-part object the current object will be linked into @@ -315,7 +317,7 @@ quiet_cmd_dtc = DTC $@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ $(DTC) -O dtb -o $@ -b 0 \ - -i $(dir $<) $(DTC_FLAGS) \ + $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)