[packages/igb: 1/2] - updated to 4.0.17 - fix build with linux 3.7

baggins baggins at pld-linux.org
Thu Dec 20 13:56:23 CET 2012


commit 34c5237e6930ef85c0f011f470b6b0f77a114039
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 20 13:54:28 2012 +0100

    - updated to 4.0.17
    - fix build with linux 3.7

 igb.spec        | 20 +++++++++++---------
 linux-3.7.patch | 11 +++++++++++
 2 files changed, 22 insertions(+), 9 deletions(-)
---
diff --git a/igb.spec b/igb.spec
index 8607bcf..cc1d15c 100644
--- a/igb.spec
+++ b/igb.spec
@@ -14,17 +14,18 @@
 %undefine	with_userspace
 %endif
 
-%define		rel	18
+%define		rel	1
 %define		pname	igb
 Summary:	Intel(R) PRO/1000 driver for Linux
 Summary(pl.UTF-8):	Sterownik do karty Intel(R) PRO/1000
 Name:		%{pname}%{_alt_kernel}
-Version:	3.4.7
+Version:	4.0.17
 Release:	%{rel}
 License:	GPL v2
 Group:		Base/Kernel
 Source0:	http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
-# Source0-md5:	4503a06412e10037b5f43b3cc151e886
+# Source0-md5:	0f8ffbe574ed20e508e891e92d733718
+Patch0:		linux-3.7.patch
 URL:		http://sourceforge.net/projects/e1000/
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRequires:	rpmbuild(macros) >= 1.379
@@ -59,17 +60,18 @@ Intel(R) PRO/1000 opartych o układy 82575EB/GB lub 82576.
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 cat > src/Makefile <<'EOF'
 obj-m := igb.o
-igb-objs := igb_main.o e1000_82575.o e1000_mac.o e1000_nvm.o e1000_phy.o \
-e1000_manage.o igb_param.o igb_ethtool.o kcompat.o e1000_api.o e1000_mbx.o igb_vmdq.o
+igb-objs := igb_main.o e1000_82575.o e1000_i210.o e1000_mac.o e1000_nvm.o e1000_phy.o \
+	e1000_manage.o igb_param.o igb_ethtool.o kcompat.o e1000_api.o \
+	e1000_mbx.o igb_vmdq.o igb_sysfs.o igb_procfs.o igb_ptp.o
 
-EXTRA_CFLAGS=-DDRIVER_IGB
+EXTRA_CFLAGS += -DDRIVER_IGB
+EXTRA_CFLAGS += -DDRIVER_NAME=igb
+EXTRA_CFLAGS += -DDRIVER_NAME_CAPS=IGB
 EOF
 
-# Large Receive Offload - Do Not Use LRO When Routing Packets
-# CFLAGS_EXTRA=-DIGB_LRO
-
 %build
 %build_kernel_modules -C src -m %{pname}
 
diff --git a/linux-3.7.patch b/linux-3.7.patch
new file mode 100644
index 0000000..7193673
--- /dev/null
+++ b/linux-3.7.patch
@@ -0,0 +1,11 @@
+--- igb-4.0.17/src/igb_main.c~	2012-10-08 17:37:31.000000000 +0200
++++ igb-4.0.17/src/igb_main.c	2012-12-20 13:47:16.403675607 +0100
+@@ -7833,7 +7833,7 @@
+ 		goto skip_bad_vf_detection;
+ 
+ 	bdev = pdev->bus->self;
+-	while (bdev && (bdev->pcie_type != PCI_EXP_TYPE_ROOT_PORT))
++	while (bdev && (pci_pcie_type(bdev) != PCI_EXP_TYPE_ROOT_PORT))
+ 		bdev = bdev->bus->self;
+ 
+ 	if (!bdev)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/igb.git/commitdiff/8dc42b0f84d15764a868e745b4fb750ba2d25c47



More information about the pld-cvs-commit mailing list