summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 7674abd98..b07b592b1 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -102,6 +102,8 @@ EXTRA_CFLAGS += -g
EXTRA_CFLAGS += $(if $(wildcard $(srctree)/.mm), -DMM_KERNEL)
+EXTRA_CFLAGS += -include $(obj)/config-compat.h
+
#################################################
# Kernel 2.4/2.6 specific rules
@@ -241,6 +243,7 @@ config-compat.h:: .myconfig
-e 'while(<>) {' \
-e ' next unless /^(\S+)\s*:= (\S+)$$/;' \
-e ' print "#undef $$1\n";' \
+ -e ' print "#undef $$1_MODULE\n";' \
-e ' if($$2 eq "n") { next; }' \
-e ' elsif($$2 eq "m") { print "#define $$1_MODULE 1\n"; }' \
-e ' elsif($$2 eq "y") { print "#define $$1 1\n"; }' \