SPECS: madwifi.spec - fixed to build with 2.6.14.7

averne averne at pld-linux.org
Tue Mar 28 15:40:56 CEST 2006


Author: averne                       Date: Tue Mar 28 13:40:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed to build with 2.6.14.7

---- Files affected:
SPECS:
   madwifi.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/madwifi.spec
diff -u SPECS/madwifi.spec:1.29 SPECS/madwifi.spec:1.30
--- SPECS/madwifi.spec:1.29	Sat Mar  4 21:51:08 2006
+++ SPECS/madwifi.spec	Tue Mar 28 15:40:51 2006
@@ -114,27 +114,28 @@
 	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
 		exit 1
 	fi
-	rm -rf include/{linux,config,asm}
-	install -d include/{linux,config}
-	ln -sf %{_kernelsrcdir}/config-$cfg .config
-	ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
+	rm -rf o/
+	install -d o/include/linux
+	ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+	ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
 %ifarch ppc ppc64
         install -d include/asm
         [ ! -d %{_kernelsrcdir}/include/asm-powerpc ] || ln -sf %{_kernelsrcdir}/include/asm-powerpc/* include/asm
         [ ! -d %{_kernelsrcdir}/include/asm-%{_target_base_arch} ] || ln -snf %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
 %else
-        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} o/include/asm
 %endif
-	ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
-	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
-	touch include/config/MARKER
+	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
 #
 #	patching/creating makefile(s) (optional)
 #
+	%{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+	ln -sf ../Makefile.inc o/Makefile.inc
 	%{__make} -C %{_kernelsrcdir} clean \
 		KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
 		RCS_FIND_IGNORE="-name '*.ko' -o" \
-		M=$PWD O=$PWD \
+		M=$PWD O=$PWD/o \
 		KERNELPATH="%{_kernelsrcdir}" \
 		%{?with_verbose:V=1}
 	%{__make} \
@@ -142,7 +143,7 @@
 		KERNELPATH=%{_kernelsrcdir} \
 		KERNELCONF="%{_kernelsrcdir}/config-$cfg" \
 		TOOLPREFIX= \
-		O=$PWD \
+		O=$PWD/o \
 		CC="%{__cc}" CPP="%{__cpp}" \
 		%{?with_verbose:V=1}
 
@@ -252,6 +253,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2006/03/28 13:40:51  averne
+- fixed to build with 2.6.14.7
+
 Revision 1.29  2006/03/04 20:51:08  tiwek
 - revert, madwifi-ng.....
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/madwifi.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list