devices/Kbuild
branchstable-1.1
changeset 1732 1cc865ba17c2
parent 1731 60b2aad9d40b
child 1744 7bc131b92039
equal deleted inserted replaced
1731:60b2aad9d40b 1732:1cc865ba17c2
     1 #------------------------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
       
     3 #  Kbuild
       
     4 #
       
     5 #  IgH EtherCAT master device modules
       
     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 
       
    36 EC_8139TOO_OBJ = 8139too-$(EC_8139TOO_KERNEL)-ethercat.o
       
    37 
    38 obj-m := ec_8139too.o
    38 obj-m := ec_8139too.o
    39 
    39 
    40 ec_8139too-objs := 8139too.o
    40 ec_8139too-objs := $(EC_8139TOO_OBJ)
    41 
    41 
    42 REV := $(shell if test -s $(src)/../svnrevision; then \
    42 REV := $(shell if test -s $(src)/../svnrevision; then \
    43 		cat $(src)/../svnrevision; \
    43 		cat $(src)/../svnrevision; \
    44 	else \
    44 	else \
    45 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
    45 		svnversion $(src)/.. 2>/dev/null || echo "unknown"; \
    46 	fi)
    46 	fi)
    47 
    47 
    48 EXTRA_CFLAGS = -DSVNREV=$(REV)
    48 CFLAGS_$(EC_8139TOO_OBJ) = -DSVNREV=$(REV)
    49 
    49 
    50 #------------------------------------------------------------------------------
    50 #------------------------------------------------------------------------------