%undefine with_userspace
%endif
-%define rel 7
+%define rel 5
%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.3.6
+Version: 4.0.17
Release: %{rel}
License: GPL v2
Group: Base/Kernel
Source0: http://downloads.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
-# Source0-md5: b9267beb43f41d364f73b4d5b9040f1e
+# 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
%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}