dtc: Use general include directory
authorMark Brown <broonie@linaro.org>
Thu, 8 May 2014 11:09:03 +0000 (12:09 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 8 May 2014 11:10:16 +0000 (12:10 +0100)
Since newer DT bindings include references to include/dt-bindings we need
to make this available to build DTs using them. Upstream has a number of
reworkings which are much more invasive but featureful, just include a
minimal fix.

Signed-off-by: Mark Brown <broonie@linaro.org>
scripts/Makefile.lib

index f97869f1f09b1f1d534f5e2b412934a9680f7d98..c4b37f6b5478c2ed457b254a1e4455955d6907aa 100644 (file)
@@ -152,6 +152,7 @@ ld_flags       = $(LDFLAGS) $(ldflags-y)
 dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc                    \
                 -I$(srctree)/arch/$(SRCARCH)/boot/dts                   \
                 -I$(srctree)/arch/$(SRCARCH)/boot/dts/include           \
+                -I$(srctree)/include                                    \
                 -undef -D__DTS__
 
 # Finds the multi-part object the current object will be linked into