]> git.pld-linux.org Git - packages/e1000.git/commitdiff
- build fix; synchro options with template-kernel-module.spec
authorzbyniu <zbyniu@pld-linux.org>
Tue, 9 May 2006 18:08:55 +0000 (18:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    e1000.spec -> 1.48

e1000.spec

index 0f53b78ed7419742c68a666f094aaa26902ae794..145e4ad53a66cd8a548365554b773c5c11bd3c0e 100644 (file)
@@ -83,7 +83,7 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} o/include/asm
 %endif
 
-cat >o/Makefile <<EOF
+cat >Makefile <<EOF
 obj-m := e1000i.o
 e1000i-objs := e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o kcompat.o
 EOF
@@ -91,6 +91,8 @@ EOF
        %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
        %{__make} -C %{_kernelsrcdir} clean \
                RCS_FIND_IGNORE="-name '*.ko' -o" \
+               SYSSRC=%{_kernelsrcdir} \
+               SYSOUT=$PWD/o \
                M=$PWD O=$PWD/o \
                %{?with_verbose:V=1}
        %{__make} -C %{_kernelsrcdir} modules \
@@ -100,10 +102,12 @@ EOF
 %endif
                HOSTCC="%{__cc}" \
                EXTRA_CFLAGS='-DE1000_NAPI' \
+               SYSSRC=%{_kernelsrcdir} \
+               SYSOUT=$PWD/o \
                M=$PWD O=$PWD/o \
                %{?with_verbose:V=1}
 
-       mv e1000{,i-$cfg}.ko
+       mv e1000i{,-$cfg}.ko
 done
 
 %install
This page took 0.043996 seconds and 4 git commands to generate.