SPECS: ndiswrapper.spec - ugly make clean fix

shadzik shadzik at pld-linux.org
Sat Oct 20 23:24:04 CEST 2007


Author: shadzik                      Date: Sat Oct 20 21:24:04 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- ugly make clean fix

---- Files affected:
SPECS:
   ndiswrapper.spec (1.99 -> 1.100) 

---- Diffs:

================================================================
Index: SPECS/ndiswrapper.spec
diff -u SPECS/ndiswrapper.spec:1.99 SPECS/ndiswrapper.spec:1.100
--- SPECS/ndiswrapper.spec:1.99	Sat Oct 20 22:59:37 2007
+++ SPECS/ndiswrapper.spec	Sat Oct 20 23:23:58 2007
@@ -90,6 +90,7 @@
 %setup -q
 %{__sed} -i -e 's#"loader.h"#"../driver/loader.h"#g' utils/loadndisdriver.c
 %{__sed} -i -e 's#$(KBUILD)/.config#$(KBUILD)/config-%{!?with_dist_kernel:non}dist#g' driver/Makefile
+%{__sed} -i -e 's at KBUILD := $(shell readlink -f /lib/modules/$(KVERS)/source)@@g' driver/Makefile
 
 %build
 %if %{with userspace}
@@ -109,11 +110,11 @@
 %endif
 	KBUILD="%{_kernelsrcdir}"
 
-%build_kernel_modules -c -m ndiswrapper \
+export KBUILD="%{_kernelsrcdir}"
+%build_kernel_modules -m ndiswrapper \
 %ifarch %{x8664}
 	CONFIG_X86_64=y \
 %endif
-	KBUILD="%{_kernelsrcdir}" \
 	KVERS="%{_kernel_ver}"
 %endif
 
@@ -162,6 +163,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.100  2007/10/20 21:23:58  shadzik
+- ugly make clean fix
+
 Revision 1.99  2007/10/20 20:59:37  shadzik
 - do not redefine UTILS_VERSION
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ndiswrapper.spec?r1=1.99&r2=1.100&f=u



More information about the pld-cvs-commit mailing list