devices/e1000e/Kbuild.in
changeset 2589 2b9c78543663
parent 2076 1baafcd263cc
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
    18 #  You should have received a copy of the GNU General Public License along
    18 #  You should have received a copy of the GNU General Public License along
    19 #  with the IgH EtherCAT Master; if not, write to the Free Software
    19 #  with the IgH EtherCAT Master; if not, write to the Free Software
    20 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    20 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    21 #
    21 #
    22 #  ---
    22 #  ---
    23 #  
    23 #
    24 #  The license mentioned above concerns the source code only. Using the
    24 #  The license mentioned above concerns the source code only. Using the
    25 #  EtherCAT technology and brand is only permitted in compliance with the
    25 #  EtherCAT technology and brand is only permitted in compliance with the
    26 #  industrial property and similar rights of Beckhoff Automation GmbH.
    26 #  industrial property and similar rights of Beckhoff Automation GmbH.
    27 #
    27 #
    28 #  ---
    28 #  ---
    40 	fi)
    40 	fi)
    41 
    41 
    42 ifeq (@ENABLE_E1000E@,1)
    42 ifeq (@ENABLE_E1000E@,1)
    43 	EC_E1000E_OBJ := \
    43 	EC_E1000E_OBJ := \
    44 		82571-@KERNEL_E1000E@-ethercat.o \
    44 		82571-@KERNEL_E1000E@-ethercat.o \
    45 		es2lan-@KERNEL_E1000E@-ethercat.o \
       
    46 		ethtool-@KERNEL_E1000E@-ethercat.o \
    45 		ethtool-@KERNEL_E1000E@-ethercat.o \
    47 		ich8lan-@KERNEL_E1000E@-ethercat.o \
    46 		ich8lan-@KERNEL_E1000E@-ethercat.o \
    48 		lib-@KERNEL_E1000E@-ethercat.o \
       
    49 		netdev-@KERNEL_E1000E@-ethercat.o \
    47 		netdev-@KERNEL_E1000E@-ethercat.o \
    50 		param-@KERNEL_E1000E@-ethercat.o \
    48 		param-@KERNEL_E1000E@-ethercat.o \
    51 		phy-@KERNEL_E1000E@-ethercat.o
    49 		phy-@KERNEL_E1000E@-ethercat.o
       
    50 
       
    51 	ifeq (@E1000E_LAYOUT@,2)
       
    52 		EC_E1000E_OBJ += \
       
    53 			80003es2lan-@KERNEL_E1000E@-ethercat.o \
       
    54 			mac-@KERNEL_E1000E@-ethercat.o \
       
    55 			manage-@KERNEL_E1000E@-ethercat.o \
       
    56 			nvm-@KERNEL_E1000E@-ethercat.o \
       
    57 			ptp-@KERNEL_E1000E@-ethercat.o
       
    58 	endif
       
    59 
       
    60 	ifeq (@E1000E_LAYOUT@,1)
       
    61 		EC_E1000E_OBJ += \
       
    62 			80003es2lan-@KERNEL_E1000E@-ethercat.o \
       
    63 			mac-@KERNEL_E1000E@-ethercat.o \
       
    64 			manage-@KERNEL_E1000E@-ethercat.o \
       
    65 			nvm-@KERNEL_E1000E@-ethercat.o
       
    66 	endif
       
    67 
       
    68 	ifeq (@E1000E_LAYOUT@,0)
       
    69 		EC_E1000E_OBJ += \
       
    70 			es2lan-@KERNEL_E1000E@-ethercat.o \
       
    71 			lib-@KERNEL_E1000E@-ethercat.o
       
    72 	endif
       
    73 
    52 	obj-m += ec_e1000e.o
    74 	obj-m += ec_e1000e.o
    53 	ec_e1000e-objs := $(EC_E1000E_OBJ)
    75 	ec_e1000e-objs := $(EC_E1000E_OBJ)
       
    76 
    54 	CFLAGS_netdev-@KERNEL_E1000E@-ethercat.o = -DREV=$(REV)
    77 	CFLAGS_netdev-@KERNEL_E1000E@-ethercat.o = -DREV=$(REV)
    55 endif
    78 endif
    56 
    79 
    57 KBUILD_EXTRA_SYMBOLS := \
    80 KBUILD_EXTRA_SYMBOLS := \
    58 	@abs_top_builddir@/$(LINUX_SYMVERS) \
    81 	@abs_top_builddir@/$(LINUX_SYMVERS) \