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 9929f84..9563901 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 3038153..9e4c45f 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>