From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH] devicetree: Move include prefixes from arch to separate directory Date: Mon, 15 May 2017 16:27:14 +0100 Message-ID: <20170515152713.GV22219@n2100.armlinux.org.uk> References: <20170515142641.GU22219@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rob Herring Cc: Olof Johansson , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Heiko Stuebner , Mark Rutland , Catalin Marinas , Will Deacon , Mikael Starvik , Jesper Nilsson , James Hogan , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Frank Rowand , linux-arch List-Id: linux-arch.vger.kernel.org On Mon, May 15, 2017 at 09:47:40AM -0500, Rob Herring wrote: > On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux > wrote: > > Maybe what we should do is: > > > > mkdir include/dt > > git mv include/dt-bindings include/dt > > for arch in arch/*; do > > dts=$arch/boot/dts > > if [ -d $dts ]; then > > a=include/dt/$(basename $arch) > > ln -s $dts $a > > git add $a > > fi > > done > > ... fixup scripts/Makefile.lib ... > > git commit > > That would just break every existing include in dts files. Are you sure about that - the existing: #include would still work. Maybe you haven't parsed the shell code properly... -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pandora.armlinux.org.uk ([78.32.30.218]:60584 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322AbdEOP13 (ORCPT ); Mon, 15 May 2017 11:27:29 -0400 Date: Mon, 15 May 2017 16:27:14 +0100 From: Russell King - ARM Linux Subject: Re: [PATCH] devicetree: Move include prefixes from arch to separate directory Message-ID: <20170515152713.GV22219@n2100.armlinux.org.uk> References: <20170515142641.GU22219@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Rob Herring Cc: Olof Johansson , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , Heiko Stuebner , Mark Rutland , Catalin Marinas , Will Deacon , Mikael Starvik , Jesper Nilsson , James Hogan , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Frank Rowand , linux-arch Message-ID: <20170515152714.3ni1Udzn85U7EnJQqdJW9zChsCl3snZKmDKmlV-hDF4@z> On Mon, May 15, 2017 at 09:47:40AM -0500, Rob Herring wrote: > On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux > wrote: > > Maybe what we should do is: > > > > mkdir include/dt > > git mv include/dt-bindings include/dt > > for arch in arch/*; do > > dts=$arch/boot/dts > > if [ -d $dts ]; then > > a=include/dt/$(basename $arch) > > ln -s $dts $a > > git add $a > > fi > > done > > ... fixup scripts/Makefile.lib ... > > git commit > > That would just break every existing include in dts files. Are you sure about that - the existing: #include would still work. Maybe you haven't parsed the shell code properly... -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.