SPECS: kernel-misc-lmpcm_usb.spec - new way of building modules

charles charles at pld-linux.org
Sat Feb 11 13:11:37 CET 2006


Author: charles                      Date: Sat Feb 11 12:11:37 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new way of building modules

---- Files affected:
SPECS:
   kernel-misc-lmpcm_usb.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/kernel-misc-lmpcm_usb.spec
diff -u SPECS/kernel-misc-lmpcm_usb.spec:1.2 SPECS/kernel-misc-lmpcm_usb.spec:1.3
--- SPECS/kernel-misc-lmpcm_usb.spec:1.2	Tue Dec  6 21:03:54 2005
+++ SPECS/kernel-misc-lmpcm_usb.spec	Sat Feb 11 13:11:31 2006
@@ -64,24 +64,25 @@
 	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
 		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
-	%if %{without dist_kernel}
-                ln -sf %{_kernelsrcdir}/scripts
-        %endif
-	touch include/config/MARKER
+	install -d o/include/{linux,config}
+	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
+%if %{with dist_kernel}
+	%{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+%else
+	ln -sf %{_kernelsrcdir}/scripts o/scripts
+	touch o/include/config/MARKER
+%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} -C %{_kernelsrcdir} modules \
 		CC="%{__cc}" CPP="%{__cpp}" \
-		M=$PWD O=$PWD \
+		M=$PWD O=$PWD/o \
 		%{?with_verbose:V=1}
+	
 	mv *.ko built/$cfg
 done
 
@@ -131,6 +132,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/02/11 12:11:31  charles
+- new way of building modules
+
 Revision 1.2  2005/12/06 20:03:54  qboosh
 - cosmetics
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kernel-misc-lmpcm_usb.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list