devices/Kbuild
changeset 568 3edb8f45bdc1
parent 485 8354ddf38481
child 569 87dd7f374593
equal deleted inserted replaced
567:0846af24f1dd 568:3edb8f45bdc1
    32 #------------------------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    33 
    33 
    34 include $(src)/../config.kbuild
    34 include $(src)/../config.kbuild
    35 
    35 
    36 EC_8139TOO_OBJ = 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
    36 EC_8139TOO_OBJ = 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
       
    37 EC_E100_OBJ = e100-$(EC_E100_KERNEL)-ethercat.o
    37 
    38 
    38 obj-m := ec_8139too.o
    39 obj-m := ec_8139too.o ec_e100.o
    39 
    40 
    40 ec_8139too-objs := $(EC_8139TOO_OBJ)
    41 ec_8139too-objs := $(EC_8139TOO_OBJ)
       
    42 ec_e100-objs := $(EC_E100_OBJ)
    41 
    43 
    42 REV := $(shell if test -s $(src)/../svnrevision; then \
    44 REV := $(shell if test -s $(src)/../svnrevision; then \
    43 		cat $(src)/../svnrevision; \
    45 		cat $(src)/../svnrevision; \
    44 	else \
    46 	else \
    45 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
    47 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
    46 	fi)
    48 	fi)
    47 
    49 
    48 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
    50 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
       
    51 CFLAGS_$(EC_E100_OBJ) = -DSVNREV=$(REV)
    49 
    52 
    50 #------------------------------------------------------------------------------
    53 #------------------------------------------------------------------------------