fp@2216: #------------------------------------------------------------------------------ fp@2216: # fp@2216: # $Id$ fp@2216: # fp@2685: # Copyright (C) 2006-2017 Florian Pose, Ingenieurgemeinschaft IgH fp@2216: # fp@2216: # This file is part of the IgH EtherCAT Master. fp@2216: # fp@2216: # The IgH EtherCAT Master is free software; you can redistribute it and/or fp@2216: # modify it under the terms of the GNU General Public License version 2, as fp@2216: # published by the Free Software Foundation. fp@2216: # fp@2216: # The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@2216: # but WITHOUT ANY WARRANTY; without even the implied warranty of fp@2216: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@2216: # Public License for more details. fp@2216: # fp@2216: # You should have received a copy of the GNU General Public License along fp@2216: # with the IgH EtherCAT Master; if not, write to the Free Software fp@2216: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@2216: # fp@2216: # --- fp@2421: # fp@2216: # The license mentioned above concerns the source code only. Using the fp@2216: # EtherCAT technology and brand is only permitted in compliance with the fp@2216: # industrial property and similar rights of Beckhoff Automation GmbH. fp@2216: # fp@2216: # --- fp@2216: # fp@2216: # vim: syntax=make fp@2216: # fp@2216: #------------------------------------------------------------------------------ fp@2216: fp@2216: TOPDIR := $(src)/../.. fp@2216: fp@2216: REV := $(shell if test -s $(TOPDIR)/revision; then \ fp@2216: cat $(TOPDIR)/revision; \ fp@2216: else \ fp@2216: hg id -i $(TOPDIR) 2>/dev/null || echo "unknown"; \ fp@2216: fi) fp@2216: fp@2685: ifeq (@ENABLE_IGB@,1) fp@2685: obj-m += ec_igb.o fp@2491: fp@2685: ec_igb-objs := \ fp@2685: e1000_82575-@KERNEL_IGB@-ethercat.o \ fp@2685: e1000_i210-@KERNEL_IGB@-ethercat.o \ fp@2685: e1000_mac-@KERNEL_IGB@-ethercat.o \ fp@2685: e1000_mbx-@KERNEL_IGB@-ethercat.o \ fp@2685: e1000_nvm-@KERNEL_IGB@-ethercat.o \ fp@2685: e1000_phy-@KERNEL_IGB@-ethercat.o \ fp@2685: igb_ethtool-@KERNEL_IGB@-ethercat.o \ fp@2685: igb_hwmon-@KERNEL_IGB@-ethercat.o \ fp@2685: igb_main-@KERNEL_IGB@-ethercat.o \ fp@2685: igb_ptp-@KERNEL_IGB@-ethercat.o fp@2585: fp@2685: CFLAGS_igb_main-@KERNEL_IGB@-ethercat.o = -DREV=$(REV) fp@2216: endif fp@2216: fp@2216: KBUILD_EXTRA_SYMBOLS := \ fp@2216: @abs_top_builddir@/$(LINUX_SYMVERS) \ fp@2216: @abs_top_builddir@/master/$(LINUX_SYMVERS) fp@2216: fp@2216: #------------------------------------------------------------------------------