37 cat $(src)/../svnrevision; \ |
37 cat $(src)/../svnrevision; \ |
38 else \ |
38 else \ |
39 svnversion $(src)/.. 2>/dev/null || echo "unknown"; \ |
39 svnversion $(src)/.. 2>/dev/null || echo "unknown"; \ |
40 fi) |
40 fi) |
41 |
41 |
42 ifeq ($(EC_ENABLE_8139TOO),1) |
42 ifeq ($(ENABLE_8139TOO),1) |
43 EC_8139TOO_OBJ := 8139too-$(EC_8139TOO_KERNEL)-ethercat.o |
43 EC_8139TOO_OBJ := 8139too-$(KERNEL_8139TOO)-ethercat.o |
44 obj-m += ec_8139too.o |
44 obj-m += ec_8139too.o |
45 ec_8139too-objs := $(EC_8139TOO_OBJ) |
45 ec_8139too-objs := $(EC_8139TOO_OBJ) |
46 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV) |
46 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV) |
47 endif |
47 endif |
48 |
48 |
49 ifeq ($(EC_ENABLE_E100),1) |
49 ifeq ($(ENABLE_E100),1) |
50 EC_E100_OBJ := e100-$(EC_E100_KERNEL)-ethercat.o |
50 EC_E100_OBJ := e100-$(KERNEL_E100)-ethercat.o |
51 obj-m += ec_e100.o |
51 obj-m += ec_e100.o |
52 ec_e100-objs := $(EC_E100_OBJ) |
52 ec_e100-objs := $(EC_E100_OBJ) |
53 CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV) |
53 CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV) |
54 endif |
54 endif |
55 |
55 |
56 ifeq ($(EC_ENABLE_FORCEDETH),1) |
56 ifeq ($(ENABLE_FORCEDETH),1) |
57 EC_FORCEDETH_OBJ := forcedeth-$(EC_FORCEDETH_KERNEL)-ethercat.o |
57 EC_FORCEDETH_OBJ := forcedeth-$(KERNEL_FORCEDETH)-ethercat.o |
58 obj-m += ec_forcedeth.o |
58 obj-m += ec_forcedeth.o |
59 ec_forcedeth-objs := $(EC_FORCEDETH_OBJ) |
59 ec_forcedeth-objs := $(EC_FORCEDETH_OBJ) |
60 CFLAGS_$(EC_FORCEDETH_OBJ) = -DSVNREV=$(REV) |
60 CFLAGS_$(EC_FORCEDETH_OBJ) = -DSVNREV=$(REV) |
61 endif |
61 endif |
62 |
62 |
63 ifeq ($(EC_ENABLE_E1000),1) |
63 ifeq ($(ENABLE_E1000),1) |
64 obj-m += e1000/ |
64 obj-m += e1000/ |
65 endif |
65 endif |
66 |
66 |
67 #------------------------------------------------------------------------------ |
67 #------------------------------------------------------------------------------ |