summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 93968dbe0..06d390e6c 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -87,20 +87,14 @@ endif
CC += -I$(obj)
EXTRA_CFLAGS += -g
+EXTRA_CFLAGS += $(if $(wildcard $(srctree)/.mm), -DMM_KERNEL)
+
snapshot := $(wildcard $(obj)/.snapshot)
ifneq ($(snapshot),)
SNAPSHOT_CFLAGS := -DSNAPSHOT='$(shell cat $(snapshot))'
EXTRA_CFLAGS += $(SNAPSHOT_CFLAGS)
endif
-mm-kernel := $(TOPDIR)/.mm
-ifneq ($(mm-kernel),)
-MM_KERNEL_CFLAGS := -DMM_KERNEL=$(shell cat $(mm-kernel) 2> /dev/null)
-ifneq ($(MM_KERNEL_CFLAGS),-DMM_KERNEL=)
-EXTRA_CFLAGS += $(MM_KERNEL_CFLAGS)
-endif
-endif
-
bttv.o: $(bttv-objs)
$(LD) -r -o $@ $(bttv-objs)