fp@1744: #------------------------------------------------------------------------------ fp@1744: # fp@1744: # $Id: Kbuild 790 2007-02-21 12:41:25Z fp $ fp@1744: # fp@1744: # Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@1744: # fp@1744: # This file is part of the IgH EtherCAT Master. fp@1744: # fp@1744: # The IgH EtherCAT Master is free software; you can redistribute it fp@1744: # and/or modify it under the terms of the GNU General Public License fp@1744: # as published by the Free Software Foundation; either version 2 of the fp@1744: # License, or (at your option) any later version. fp@1744: # fp@1744: # The IgH EtherCAT Master is distributed in the hope that it will be fp@1744: # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1744: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@1744: # GNU General Public License for more details. fp@1744: # fp@1744: # You should have received a copy of the GNU General Public License fp@1744: # along with the IgH EtherCAT Master; if not, write to the Free Software fp@1744: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@1744: # fp@1744: # The right to use EtherCAT Technology is granted and comes free of fp@1744: # charge under condition of compatibility of product made by fp@1744: # Licensee. People intending to distribute/sell products based on the fp@1744: # code, have to sign an agreement to guarantee that products using fp@1744: # software based on IgH EtherCAT master stay compatible with the actual fp@1744: # EtherCAT specification (which are released themselves as an open fp@1744: # standard) as the (only) precondition to have the right to use EtherCAT fp@1744: # Technology, IP and trade marks. fp@1744: # fp@1744: #------------------------------------------------------------------------------ fp@1744: fp@1744: TOPDIR := $(src)/../.. fp@1744: include $(TOPDIR)/config.kbuild fp@1744: fp@1744: REV := $(shell if test -s $(TOPDIR)/svnrevision; then \ fp@1744: cat $(TOPDIR)/svnrevision; \ fp@1744: else \ fp@1744: svnversion $(TOPDIR) 2>/dev/null || echo "unknown"; \ fp@1744: fi) fp@1744: fp@1744: ifeq ($(ENABLE_E1000),1) fp@1744: EC_E1000_OBJ := e1000_main-$(KERNEL_E1000)-ethercat.o \ fp@1744: e1000_hw-$(KERNEL_E1000)-ethercat.o \ fp@1744: e1000_ethtool-$(KERNEL_E1000)-ethercat.o \ fp@1744: e1000_param-$(KERNEL_E1000)-ethercat.o fp@1744: obj-m += ec_e1000.o fp@1744: ec_e1000-objs := $(EC_E1000_OBJ) fp@1744: CFLAGS_e1000_main-$(KERNEL_E1000)-ethercat.o = -DSVNREV=$(REV) fp@1744: endif fp@1744: fp@1744: #------------------------------------------------------------------------------