devices/Kbuild
branchstable-1.1
changeset 1732 1cc865ba17c2
parent 1731 60b2aad9d40b
child 1744 7bc131b92039
--- a/devices/Kbuild	Fri Oct 13 10:07:10 2006 +0000
+++ b/devices/Kbuild	Tue Nov 07 12:13:30 2006 +0000
@@ -1,9 +1,5 @@
 #------------------------------------------------------------------------------
 #
-#  Kbuild
-#
-#  IgH EtherCAT master device modules
-#
 #  $Id$
 #
 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
@@ -35,9 +31,13 @@
 #
 #------------------------------------------------------------------------------
 
+include $(src)/../config.kbuild
+
+EC_8139TOO_OBJ = 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
+
 obj-m := ec_8139too.o
 
-ec_8139too-objs := 8139too.o
+ec_8139too-objs := $(EC_8139TOO_OBJ)
 
 REV := $(shell if test -s $(src)/../svnrevision; then \
 		cat $(src)/../svnrevision; \
@@ -45,6 +45,6 @@
 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
 	fi)
 
-EXTRA_CFLAGS = -DSVNREV=$(REV)
+CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
 
 #------------------------------------------------------------------------------