equal
deleted
inserted
replaced
29 # standard) as the (only) precondition to have the right to use EtherCAT |
29 # standard) as the (only) precondition to have the right to use EtherCAT |
30 # Technology, IP and trade marks. |
30 # Technology, IP and trade marks. |
31 # |
31 # |
32 #------------------------------------------------------------------------------ |
32 #------------------------------------------------------------------------------ |
33 |
33 |
34 EC_MOD_KERNEL := $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) |
34 include $(src)/../config.kbuild |
|
35 |
|
36 EC_8139TOO_OBJ = 8139too-$(EC_8139TOO_KERNEL)-ethercat.o |
35 |
37 |
36 obj-m := ec_8139too.o |
38 obj-m := ec_8139too.o |
37 |
39 |
38 ec_8139too-objs := 8139too-$(EC_MOD_KERNEL)-ethercat.o |
40 ec_8139too-objs := $(EC_8139TOO_OBJ) |
39 |
41 |
40 REV := $(shell if test -s $(src)/../svnrevision; then \ |
42 REV := $(shell if test -s $(src)/../svnrevision; then \ |
41 cat $(src)/../svnrevision; \ |
43 cat $(src)/../svnrevision; \ |
42 else \ |
44 else \ |
43 svnversion $(src)/.. 2>/dev/null || echo "unknown"; \ |
45 svnversion $(src)/.. 2>/dev/null || echo "unknown"; \ |
44 fi) |
46 fi) |
45 |
47 |
46 CFLAGS_8139too-$(EC_MOD_KERNEL)-ethercat.o = -DSVNREV=$(REV) |
48 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV) |
47 |
49 |
48 #------------------------------------------------------------------------------ |
50 #------------------------------------------------------------------------------ |