[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-cvs
Subject:    [IPCop-cvs] ipcop/lfs bnx2,NONE,1.1.2.1
From:       Olaf Westrik <owes () users ! sourceforge ! net>
Date:       2007-10-13 20:36:54
Message-ID: E1IgnjE-00014e-Au () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ipcop/ipcop/lfs
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2152/lfs

Added Files:
      Tag: IPCOP_v1_4_0
	bnx2 
Log Message:
Added Broadcom NetXtreme II (bnx2) v1.5.10c
non-smp is reported to work, not 100% sure yet about smp


--- NEW FILE: bnx2 ---
###############################################################################
# This file is part of the IPCop Firewall.                                    #
#                                                                             #
# IPCop is free software; you can redistribute it and/or modify               #
# it under the terms of the GNU General Public License as published by        #
# the Free Software Foundation; either version 2 of the License, or           #
# (at your option) any later version.                                         #
#                                                                             #
# IPCop is distributed in the hope that it will be useful,                    #
# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
# GNU General Public License for more details.                                #
#                                                                             #
# You should have received a copy of the GNU General Public License           #
# along with IPCop; if not, write to the Free Software                        #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA    #
#                                                                             #
# Makefiles are based on LFSMake, which is                                    #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
#                                                                             #
# Modifications by:                                                           #
# ??-12-2003 Mark Wormgoor < mark@wormgoor.com>                               #
#          - Modified Makefile for IPCop build                                #
#                                                                             #
# $Id: bnx2,v 1.1.2.1 2007/10/13 20:36:52 owes Exp $
#                                                                             #
###############################################################################

###############################################################################
# Definitions
###############################################################################

include Config

VER        = 1.5.10c

THISAPP    = bnx2-$(VER)
DL_FILE    = linux-$(VER).zip
# http://www.broadcom.com/support/ethernet_nic/netxtremeii.php
DL_FROM    = http://www.broadcom.com/docs/driver_download/NXII
DIR_APP    = $(DIR_SRC)/$(THISAPP)
ifeq "$(SMP)" ""
  TARGET     = $(DIR_INFO)/$(THISAPP)
else
  TARGET     = $(DIR_INFO)/$(THISAPP)-smp
endif

###############################################################################
# Top-level Rules
###############################################################################

objects = $(DL_FILE)

$(DL_FILE)			= $(DL_FROM)/$(DL_FILE)

$(DL_FILE)_MD5			= 4b3c8da53c23d510d1f39f2fb1d55f3c

install : $(TARGET)

check : $(patsubst %,$(DIR_CHK)/%,$(objects))

download :$(patsubst %,$(DIR_DL)/%,$(objects))

md5 : $(subst %,%_MD5,$(objects))

###############################################################################
# Downloading, checking, md5sum
###############################################################################

$(patsubst %,$(DIR_CHK)/%,$(objects)) :
	@$(CHECK)

$(patsubst %,$(DIR_DL)/%,$(objects)) :
	@$(LOAD)

$(subst %,%_MD5,$(objects)) :
	@$(MD5)

###############################################################################
# Installation Details
###############################################################################

$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
	@$(PREBUILD)
	@rm -rf $(DIR_APP)
	@rm -f $(DIR_SRC)/bnx2-$(VER).tar.gz
	@cd $(DIR_SRC) && unzip -j $(DIR_DL)/$(DL_FILE) Server/Linux/Driver/bnx2-$(VER).tar.gz 
	@cd $(DIR_SRC) && tar zxf bnx2-$(VER).tar.gz
	cd $(DIR_APP) && sed -i 's/-DOLD_NETIF//' src/Makefile
ifeq "$(SMP)" ""
	cd $(DIR_APP)/src && make KVER=$(KVER)
	cd $(DIR_APP)/src && gzip -nf9 bnx2.o
	install -D -m 644 $(DIR_APP)/src/bnx2.o.gz /lib/modules/$(KVER)/kernel/drivers/net/bnx2.o.gz
else
	cd $(DIR_APP)/src && make KVER=$(KVER)
	cd $(DIR_APP)/src && gzip -nf9 bnx2.o
	install -D -m 644 $(DIR_APP)/src/bnx2.o.gz /lib/modules/$(KVER)-smp/kernel/drivers/net/bnx2.o.gz
endif
	@rm -rf $(DIR_APP)
	@rm -f $(DIR_SRC)/bnx2-$(VER).tar.gz
	@$(POSTBUILD)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
IPCop-cvs mailing list
IPCop-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic