master/Kbuild
branchstable-1.1
changeset 1732 1cc865ba17c2
parent 1731 60b2aad9d40b
child 1736 3effd90e8176
equal deleted inserted replaced
1731:60b2aad9d40b 1732:1cc865ba17c2
     1 #------------------------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
       
     3 #  Kbuild
       
     4 #
       
     5 #  IgH EtherCAT master module
       
     6 #
     2 #
     7 #  $Id$
     3 #  $Id$
     8 #
     4 #
     9 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
     5 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
    10 #
     6 #
    33 #  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
    34 #  Technology, IP and trade marks.
    30 #  Technology, IP and trade marks.
    35 #
    31 #
    36 #------------------------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    37 
    33 
       
    34 include $(src)/../config.kbuild
       
    35 
    38 obj-m := ec_master.o
    36 obj-m := ec_master.o
    39 
    37 
    40 ec_master-objs := module.o master.o device.o slave.o datagram.o \
    38 ec_master-objs := module.o master.o device.o slave.o datagram.o \
    41 		domain.o mailbox.o ethernet.o fsm.o
    39 		domain.o mailbox.o canopen.o ethernet.o \
       
    40                 fsm_sii.o fsm_change.o fsm_coe.o fsm.o
    42 # xmldev.o
    41 # xmldev.o
    43 
    42 
    44 ifeq ($(EC_DBG_IF),1)
    43 ifeq ($(EC_DBG_IF),1)
    45 	ec_master-objs += debug.o
    44 	ec_master-objs += debug.o
    46 endif
    45 endif
    49 		cat $(src)/../svnrevision; \
    48 		cat $(src)/../svnrevision; \
    50 	else \
    49 	else \
    51 		svnversion $(src) 2>/dev/null || echo "unknown"; \
    50 		svnversion $(src) 2>/dev/null || echo "unknown"; \
    52 	fi)
    51 	fi)
    53 
    52 
    54 EXTRA_CFLAGS := -DSVNREV=$(REV)
    53 CFLAGS_module.o := -DSVNREV=$(REV)
    55 
    54 
    56 #------------------------------------------------------------------------------
    55 #------------------------------------------------------------------------------