- make it build with new kernel
authortommat <tommat@pld-linux.org>
Mon, 17 Apr 2006 13:06:11 +0000 (13:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atmelwlandriver-usb-api.patch -> 1.2
    atmelwlandriver.spec -> 1.43

atmelwlandriver-usb-api.patch
atmelwlandriver.spec

index f52281b..c51ec7b 100644 (file)
                }
        }
                             
+diff -Nur atmelwlandriver-orig/src/usb/vnetusba.c atmelwlandriver/src/usb/vnetusba.c
+--- atmelwlandriver-orig/src/usb/vnetusba.c    2006-04-11 12:38:57.516432000 +0200
++++ atmelwlandriver/src/usb/vnetusba.c 2006-04-17 14:53:11.006174500 +0200
+@@ -2254,6 +2254,10 @@
+               del_timer_sync(Adapter->CtrlTimer);
+       }
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13)) 
++#define URB_ASYNC_UNLINK 0
++#endif
++
+ #if (LINUX_VERSION_CODE < 0x020500)
+       Adapter->rx_urb->transfer_flags &= ~USB_ASYNC_UNLINK;
+       Adapter->tx_urb->transfer_flags &= ~USB_ASYNC_UNLINK;
index e286464..1baf8b5 100644 (file)
@@ -172,24 +172,30 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
                exit 1
        fi
        rm -rf include
-       install -d include/{linux,config}
-       ln -sf %{_kernelsrcdir}/config-$cfg .config
-       ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
-       ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
-       ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
-       touch include/config/MARKER
+       install -d o/include/{linux,config}
+       ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+       ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
+       ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+
+%if %{with dist_kernel}
+       %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+%else
+       install -d o/include/config
+       touch o/include/config/MARKER
+       ln -sf %{_kernelsrcdir}/scripts o/scripts
+%endif
 
        %{__make} -C %{_kernelsrcdir} clean \
                RCS_FIND_IGNORE="-name '*.ko' -o" \
-               M=$PWD O=$PWD \
+               M=$PWD O=$PWD/o \
                %{?with_verbose:V=1}
        %{__make} pcmcia buildonly=release \
                KERNEL_VERSION=%{__kernel_ver} \
-               M=$PWD O=$PWD \
+               M=$PWD O=$PWD/o \
                %{?with_verbose:V=1}
        %{__make} usb buildonly=release \
                KERNEL_VERSION=%{__kernel_ver} \
-               M=$PWD O=$PWD \
+               M=$PWD O=$PWD/o \
                %{?with_verbose:V=1}
 
        mv -f objs/*/release/*.ko built/$cfg
@@ -203,7 +209,7 @@ done
 
 %{__make} lvnet \
        OPT="%{rpmcflags} %{rpmldflags}" \
-       INCDIR=%{_includedir}
+       INCDIR=%{_includedir} \
 
 %{__make} -C src/apps/fw-upgrade atmelup \
        CCC="%{__cc}" \
This page took 0.054586 seconds and 4 git commands to generate.