Thread (12 messages) 12 messages, 5 authors, 2017-05-17

Re: [PATCH] devicetree: Move include prefixes from arch to separate directory

From: Russell King - ARM Linux <linux@armlinux.org.uk>
Date: 2017-05-15 15:49:22
Also in: linux-arch, linux-arm-kernel, lkml

On Mon, May 15, 2017 at 08:27:54AM -0700, Olof Johansson wrote:
On Mon, May 15, 2017 at 7:47 AM, Rob Herring [off-list ref] wrote:
quoted
On Mon, May 15, 2017 at 9:26 AM, Russell King - ARM Linux
[off-list ref] wrote:
quoted
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.
It doesn't break dts includes if done together with a change in -I,
but it might break includes from the driver side (or needs another -I
there).
Good point.

We could leave include/dt-bindings where it is, and just do the rest of
it for the cross-arch includes.  Slightly less tidy but should have a
lower impact.

-- 
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help