]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Fix out of tree builds
authorPeter Clifton <pcjc2@cam.ac.uk>
Mon, 3 May 2010 12:24:41 +0000 (13:24 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 10 May 2010 20:38:32 +0000 (13:38 -0700)
Fixes up include paths for i915_trace.h by setting additional CFLAGS
for i915_trace_points.c to include the $src directory. The required
TRACE_INCLUDE_PATH is then "."

Signed-off-by: Peter Clifton <pcjc2@cam.ac.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_trace.h

index 9929f84ec3e1f34f9602df622af224bd21188ebb..95639017bdbe732ef9765f28905189966bb77182 100644 (file)
@@ -33,3 +33,5 @@ i915-$(CONFIG_ACPI)   += i915_opregion.o
 i915-$(CONFIG_COMPAT)   += i915_ioc32.o
 
 obj-$(CONFIG_DRM_I915)  += i915.o
+
+CFLAGS_i915_trace_points.o := -I$(src)
index 303815321c797afbe4072be00630e44037a7aaa8..9e4c45f68d6edd2af9812cef1c5fc89453e52f55 100644 (file)
@@ -276,5 +276,5 @@ DEFINE_EVENT(i915_ring, i915_ring_wait_end,
 
 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/i915
+#define TRACE_INCLUDE_PATH .
 #include <trace/define_trace.h>