--- a/master/Kbuild Thu Sep 28 08:31:33 2006 +0000
+++ b/master/Kbuild Fri Oct 13 10:07:10 2006 +0000
@@ -38,15 +38,19 @@
obj-m := ec_master.o
ec_master-objs := module.o master.o device.o slave.o datagram.o \
- domain.o mailbox.o ethernet.o debug.o fsm.o
+ domain.o mailbox.o ethernet.o fsm.o
# xmldev.o
+ifeq ($(EC_DBG_IF),1)
+ ec_master-objs += debug.o
+endif
+
REV := $(shell if test -s $(src)/../svnrevision; then \
cat $(src)/../svnrevision; \
else \
svnversion $(src) 2>/dev/null || echo "unknown"; \
fi)
-EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
+EXTRA_CFLAGS := -DSVNREV=$(REV)
#------------------------------------------------------------------------------