devices/Kbuild
changeset 473 e34754cd973e
parent 445 3b7eec329112
child 485 8354ddf38481
--- a/devices/Kbuild	Thu Nov 02 14:20:24 2006 +0000
+++ b/devices/Kbuild	Thu Nov 02 19:08:06 2006 +0000
@@ -31,9 +31,11 @@
 #
 #------------------------------------------------------------------------------
 
+EC_MOD_KERNEL := $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
+
 obj-m := ec_8139too.o
 
-ec_8139too-objs := 8139too.o
+ec_8139too-objs := 8139too-$(EC_MOD_KERNEL)-ethercat.o
 
 REV := $(shell if test -s $(src)/../svnrevision; then \
 		cat $(src)/../svnrevision; \
@@ -41,6 +43,6 @@
 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
 	fi)
 
-CFLAGS_8139too.o = -DSVNREV=$(REV)
+CFLAGS_8139too-$(EC_MOD_KERNEL)-ethercat.o = -DSVNREV=$(REV)
 
 #------------------------------------------------------------------------------