summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-10-17 16:51:35 +0200
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2012-10-17 13:32:49 -0700
commit894e2934b0cdf5a9f8fac8fec1c6c50f833ec21d (patch)
tree8f867a58af5ad9ca0260421d1c84ec579c776057 /Makefile
parent0caa67b8f19e3122f567237f5cf4629faeef6352 (diff)
compat-drivers: fix handing of include/uapi
The kernel make file uses an include path of kernel/include, kernel/include/uapi (I removed all the other unrelated paths). Now compat-drivers should also use this path otherwise we have to patch many files. With this patch for compat-drivers it creates a include path like this: w-d/include, w-d/include/uapi, kernel/include, kernel/include/uapi that way this is similar to the way the kernel does it. When copying all the upai headers like it was done before in compat- drivers, some headers in c-d/include/uapi will overwrite some important headers in the kernel, we should just copy the files we actually need. With this patch compat-drivers compiles for me against my Ubuntu 3.2 kernel, it still fails on some other kernel versions, with as I see it, uapi unrelated errors. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6aa03c72..771edeff 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ include $(COMPAT_CONFIG_CW)
NOSTDINC_FLAGS := \
-I$(M)/include/ \
+ -I$(M)/include/uapi \
-I$(M)/include/drm \
-include $(M)/include/linux/compat-2.6.h \
$(CFLAGS)