%kmdl forcedeth Summary: Ethernet driver for NVIDIA nForce media access controllers. Name: forcedeth Version: 0.22 Release: 2.1.2%{?dist} License: GPL Group: System Environment/Kernel URL: http://www.hailfinger.org/carldani/linux/patches/forcedeth/ Source0: http://www.hailfinger.org/carldani/linux/patches/forcedeth/forcedeth_2_4_patch_v22.txt BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %kmdl_parentdependencies %description This driver is a cleanroom reimplementation based on reverse engineered documentation written by Carl-Daniel Hailfinger and Andrew de Quincey. %package -n %kmdl_name %kmdl_dependencies Summary: Kernel module for NVIDIA nForce media access controllers. Group: System Environment/Kernel %description -n %kmdl_name This driver is a cleanroom reimplementation based on reverse engineered documentation written by Carl-Daniel Hailfinger and Andrew de Quincey. %kmdl_desc %prep %setup -q -c -T sed -e '1,/b.drivers.net.forcedeth.c/ d' < %{SOURCE0} \ | grep '^\+[^+]' | sed -e's,^\+,,' \ > forcedeth.c patch -R forcedeth.c << EOF diff -u b/Documentation/Configure.help b/Documentation/Configure.help --- b/Documentation/Configure.help Mon Dec 8 17:58:29 2003 +++ b/Documentation/Configure.help Sat Jan 24 17:06:52 2004 @@ -100,20 +111,6 @@ #define synchronize_irq(irq) synchronize_irq_wrapper(irq) #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,70)) -#define SET_NETDEV_DEV(x,y) do { } while(0) -#endif - -/* - * This is in since 2.5.69 and 2.4.22 - */ -#ifndef IRQ_NONE -#define IRQ_NONE -#define IRQ_HANDLED -#define IRQ_RETVAL(x) -typedef void irqreturn_t; -#endif - /* * Hardware access: */ EOF cat > Makefile << EOF obj-m := forcedeth.o include \$(TOPDIR)/Rules.make EOF %build %if %{kmdl_userland} %else %kmdl_config make -C %{kmdl_kernelsrcdir} SUBDIRS=`pwd` modules %endif %install rm -rf %{buildroot} %if %{kmdl_userland} %else mkdir -p %{buildroot}%{kmdl_moduledir}/drivers/net/ install -p forcedeth.*o %{buildroot}%{kmdl_moduledir}/drivers/net %endif %clean rm -rf %{buildroot} %post -n %kmdl_name %kmdl_install %postun -n %kmdl_name %kmdl_remove %if %{kmdl_userland} %files %defattr(-,root,root,-) %else %files -n %kmdl_name %defattr(-,root,root,-) %{kmdl_moduledir}/drivers/net/forcedeth.*o %endif %changelog * Sun Jan 25 2004 Axel Thimm - Initial build.