devices/Kbuild
changeset 584 150c8a1caf25
parent 582 39f1704b0c99
child 585 dc1ea0099b4c
equal deleted inserted replaced
583:172d42146930 584:150c8a1caf25
    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 ($(EC_ENABLE_8139TOO),1)
       
    43 	EC_8139TOO_OBJ := 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
    43 	obj-m += ec_8139too.o
    44 	obj-m += ec_8139too.o
    44 	ec_8139too-objs := 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
    45 	ec_8139too-objs := $(EC_8139TOO_OBJ)
    45 	CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
    46 	CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
    46 endif
    47 endif
    47 
    48 
    48 ifeq ($(EC_ENABLE_E100),1)
    49 ifeq ($(EC_ENABLE_E100),1)
       
    50 	EC_E100_OBJ := e100-$(EC_E100_KERNEL)-ethercat.o
    49 	obj-m += ec_e100.o
    51 	obj-m += ec_e100.o
    50 	ec_e100-objs := e100-$(EC_E100_KERNEL)-ethercat.o
    52 	ec_e100-objs := $(EC_E100_OBJ)
    51 	CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV)
    53 	CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV)
    52 endif
    54 endif
    53 
    55 
    54 ifeq ($(EC_ENABLE_FORCEDETH),1)
    56 ifeq ($(EC_ENABLE_FORCEDETH),1)
       
    57 	EC_FORCEDETH_OBJ := forcedeth-$(EC_FORCEDETH_KERNEL)-ethercat.o
    55 	obj-m += ec_forcedeth.o
    58 	obj-m += ec_forcedeth.o
    56 	ec_forcedeth-objs := forcedeth-$(EC_FORCEDETH_KERNEL)-ethercat.o
    59 	ec_forcedeth-objs := $(EC_FORCEDETH_OBJ)-ethercat.o
    57 	CFLAGS_$(EC_FORCEDETH_OBJ) = -DSVNREV=$(REV)
    60 	CFLAGS_$(EC_FORCEDETH_OBJ) = -DSVNREV=$(REV)
    58 endif
    61 endif
    59 
    62 
    60 #------------------------------------------------------------------------------
    63 #------------------------------------------------------------------------------