summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-02-19 16:50:52 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2007-02-19 16:50:52 -0800
commitfda56953d09325bd00e7edc0292d5034e494218e (patch)
tree50bf6835af96aa19b21b569276775ff87f02f0fc /v4l/Makefile
parent6414245c8fb95b7664678c441f8d84ef047d6489 (diff)
downloadmediapointer-dvb-s2-fda56953d09325bd00e7edc0292d5034e494218e.tar.gz
mediapointer-dvb-s2-fda56953d09325bd00e7edc0292d5034e494218e.tar.bz2
compat: Add -include linux/version.h to cflags
From: Trent Piepho <xyzzy@speakeasy.org> Add -include linux/version.h to the cflags. Now code can have backward compatibility test without including compat.h first. Linux headers included from compat.h are removed, so that code will get the same headers when compiling in v4l-dvb as it does in the kernel. Many drivers have compat.h moved to the end of their include list, as this lets compat.h do things it can't do at the beginning. Such as test of something is defined to include compat code, or to put a wrapper around a function without changing the function's name. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index b07b592b1..f08143def 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -102,8 +102,12 @@ EXTRA_CFLAGS += -g
EXTRA_CFLAGS += $(if $(wildcard $(srctree)/.mm), -DMM_KERNEL)
+# Make sure kernel's options are overridden by v4l-dvb options
EXTRA_CFLAGS += -include $(obj)/config-compat.h
+# Allow kernel version compat tests without adding #include's
+EXTRA_CFLAGS += -include linux/version.h
+
#################################################
# Kernel 2.4/2.6 specific rules