]> git.dujemihanovic.xyz Git - u-boot.git/commit
dts/Makefile: unify cpp/dtc include paths
authorStephen Warren <swarren@nvidia.com>
Wed, 24 Jul 2013 17:09:19 +0000 (10:09 -0700)
committerTom Rini <trini@ti.com>
Fri, 2 Aug 2013 22:29:32 +0000 (18:29 -0400)
commitc8391a0e926feeb55e3d9087e74f9d39b1f4ae21
tree367fec588e73270c78fe353e1b430bec65f5231e
parentcc4f427bbd7192b602310ee27ee34e3bfe81608b
dts/Makefile: unify cpp/dtc include paths

*.dts may use #include (via cpp) or /include/ (via dtc; assuming a newer
dtc). The choice is up to the creator of the DT. Create a common variable
DTC_INCDIRS that lists the paths searched by include statements, and
update cpp and dtc invocation to use them.

For cpp, also specify -nostdinc to ensure the same set of paths is
available to both type of include statement.

For dtc, create a new DTC_FLAGS variable to hold all the flags passed to
dtc.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
dts/Makefile