From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751202AbdE3Q5D (ORCPT ); Tue, 30 May 2017 12:57:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:52366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbdE3Q5C (ORCPT ); Tue, 30 May 2017 12:57:02 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B15AD239EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org MIME-Version: 1.0 In-Reply-To: <1496150575-9273-1-git-send-email-abrodkin@synopsys.com> References: <1496150575-9273-1-git-send-email-abrodkin@synopsys.com> From: Rob Herring Date: Tue, 30 May 2017 11:56:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arc: Add "include chroot" for DT bindings To: Alexey Brodkin Cc: arcml , "linux-kernel@vger.kernel.org" , Vineet Gupta , Stephen Warren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2017 at 8:22 AM, Alexey Brodkin wrote: > Basically this extends > c58299aa8754 "kbuild: create an "include chroot" for DT bindings" for > ARC where we extensively use Device Tree and there're good reasons > to use DT bindings, especially if those are required. > > Otherwise on attempt to compile .dts with something like: > -------------------->8--------------------- > #include > -------------------->8--------------------- > > we inevitably see this compilation failure: > -------------------->8--------------------- > arch/arc/boot/dts/hsdk.dts:16:40: fatal error: dt-bindings/net/ti-dp83867.h: No such file or directory > #include > ^ > compilation terminated. > -------------------->8--------------------- > > Signed-off-by: Alexey Brodkin > Cc: Stephen Warren > Cc: Rob Herring > --- > arch/arc/boot/dts/include/dt-bindings | 1 + > 1 file changed, 1 insertion(+) > create mode 120000 arch/arc/boot/dts/include/dt-bindings I believe commit d5d332d3f7e8 ("devicetree: Move include prefixes from arch to separate directory") does what you want. Rob From mboxrd@z Thu Jan 1 00:00:00 1970 From: robh+dt@kernel.org (Rob Herring) Date: Tue, 30 May 2017 11:56:40 -0500 Subject: [PATCH] arc: Add "include chroot" for DT bindings In-Reply-To: <1496150575-9273-1-git-send-email-abrodkin@synopsys.com> References: <1496150575-9273-1-git-send-email-abrodkin@synopsys.com> List-ID: Message-ID: To: linux-snps-arc@lists.infradead.org On Tue, May 30, 2017 at 8:22 AM, Alexey Brodkin wrote: > Basically this extends > c58299aa8754 "kbuild: create an "include chroot" for DT bindings" for > ARC where we extensively use Device Tree and there're good reasons > to use DT bindings, especially if those are required. > > Otherwise on attempt to compile .dts with something like: > -------------------->8--------------------- > #include > -------------------->8--------------------- > > we inevitably see this compilation failure: > -------------------->8--------------------- > arch/arc/boot/dts/hsdk.dts:16:40: fatal error: dt-bindings/net/ti-dp83867.h: No such file or directory > #include > ^ > compilation terminated. > -------------------->8--------------------- > > Signed-off-by: Alexey Brodkin > Cc: Stephen Warren > Cc: Rob Herring > --- > arch/arc/boot/dts/include/dt-bindings | 1 + > 1 file changed, 1 insertion(+) > create mode 120000 arch/arc/boot/dts/include/dt-bindings I believe commit d5d332d3f7e8 ("devicetree: Move include prefixes from arch to separate directory") does what you want. Rob