dummy/Kbuild
changeset 679 62fc387ec928
parent 665 a9794f927d78
child 685 3e7828ef0cd8
--- a/dummy/Kbuild	Mon Aug 06 12:33:09 2007 +0000
+++ b/dummy/Kbuild	Tue Aug 07 07:54:51 2007 +0000
@@ -33,16 +33,16 @@
 
 include $(src)/../config.kbuild
 
-obj-m := ec_dummy.o
-
-ec_dummy-objs := module.o master.o slave.o domain.o
-
 REV := $(shell if test -s $(src)/../svnrevision; then \
 		cat $(src)/../svnrevision; \
 	else \
 		svnversion $(src) 2>/dev/null || echo "unknown"; \
 	fi)
 
-CFLAGS_dummy.o := -DSVNREV=$(REV)
+ifeq ($(EC_DUMMY),1)
+    obj-m := ec_dummy.o
+	ec_dummy-objs := module.o master.o slave.o domain.o
+	CFLAGS_dummy.o := -DSVNREV=$(REV)
+endif
 
 #------------------------------------------------------------------------------