kbuild: limit dtc+cpp include path
authorStephen Warren <swarren@nvidia.com>
Tue, 12 Feb 2013 22:03:37 +0000 (15:03 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Feb 2013 10:12:10 +0000 (10:12 +0000)
commite570d7c15a73f88942885881a84257a65fa44c80
treedc4a93d347d6546b4122ddd0d2b85bf6f1655edd
parente80beb27d2f81a1c3c8887e0e0a82d77bb392d28
kbuild: limit dtc+cpp include path

Device tree source files may now include header files. The intent is
that those header files define/name constants used as part of the DT
bindings. Currently this feature is open to abuse, since any kernel
header file at all can be included, This could allow device tree files
to become dependant on kernel headers files, and thus make them no
longer OS-independent. This would also prevent separating the device
tree source files from the kernel repository.

Solve this by limiting the cpp include path for device tree files to
separate directories.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
scripts/Makefile.lib