mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
intel-lan: update intel lan driver.
This commit is contained in:
19
lfs/igb
19
lfs/igb
@@ -1,7 +1,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2011 IPFire Team <info@ipfire.org> #
|
||||
# Copyright (C) 2007-2012 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
@@ -25,8 +25,14 @@
|
||||
include Config
|
||||
|
||||
VERSUFIX = ipfire$(KCFG)
|
||||
ifeq "$(KCFG)" "-xen"
|
||||
KVER = 2.6.32.60
|
||||
MODPATH = /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/igb/
|
||||
else
|
||||
MODPATH = /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/ethernet/intel/igb/
|
||||
endif
|
||||
|
||||
VER = 3.2.10
|
||||
VER = 3.4.8
|
||||
|
||||
THISAPP = igb-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
@@ -42,7 +48,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 22d09e7f7c8f0b23f744914e41c7ce43
|
||||
$(DL_FILE)_MD5 = 36bd0eface2761577f52d84d5c5b78ea
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -75,12 +81,11 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
#Save original igb module
|
||||
-mv /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/igb/igb.ko \
|
||||
/lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/igb/igb.ko.org
|
||||
-mv $(MODPATH)/igb.ko \
|
||||
$(MODPATH)//igb.ko.org
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP)/src && make -C /lib/modules/$(KVER)-$(VERSUFIX)/build/ \
|
||||
SUBDIRS=$(DIR_APP)/src modules
|
||||
cd $(DIR_APP)/src && install -m 644 igb.ko \
|
||||
/lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/igb
|
||||
cd $(DIR_APP)/src && install -m 644 igb.ko $(MODPATH)
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user