]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/igb
update disclaimer in LFS files
[ipfire-2.x.git] / lfs / igb
diff --git a/lfs/igb b/lfs/igb
index 7f45e386d5e78dc2f7169b8100cfd4a8455d818a..8f0256ceb1923230e383214805ad6b69ee7763da 100644 (file)
--- a/lfs/igb
+++ b/lfs/igb
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team <info@ipfire.org>                      #
+# Copyright (C) 2007-2018  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        #
 
 include Config
 
-ifeq "$(PAE)" "1"
-       VERSUFIX = ipfire-pae
-else
-ifeq "$(XEN)" "1"
-       VERSUFIX = ipfire-xen
-else
-       VERSUFIX = ipfire
-endif
-endif
+VERSUFIX   = ipfire$(KCFG)
+MODPATH = /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/ethernet/intel/igb/
 
-VER        = 3.2.10
+VER        = 5.3.4.4
 
 THISAPP    = igb-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -50,7 +43,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 22d09e7f7c8f0b23f744914e41c7ce43
+$(DL_FILE)_MD5 = 6c0d7dfdb161128da7c039fc83bbdba0
 
 install : $(TARGET)
 
@@ -83,12 +76,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) && patch -Np1 < $(DIR_SRC)/src/patches/igb-5.3.4.4_fix_hung_at_dev_get_stats.patch
+       cd $(DIR_APP)/src && make BUILD_KERNEL=$(KVER)-$(VERSUFIX)
+       cd $(DIR_APP)/src && install -m 644 igb.ko $(MODPATH)
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)