SPECS: rt2400.spec - release 3 She smells like template-kernel...

radek radek at pld-linux.org
Tue Mar 14 17:26:40 CET 2006


Author: radek                        Date: Tue Mar 14 16:26:40 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- release 3
    She smells like template-kernel-module.spec ought to smell.
    The perfect one.
    The Goddess.
    The %%build section.

---- Files affected:
SPECS:
   rt2400.spec (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: SPECS/rt2400.spec
diff -u SPECS/rt2400.spec:1.33 SPECS/rt2400.spec:1.34
--- SPECS/rt2400.spec:1.33	Thu Jan 12 21:21:47 2006
+++ SPECS/rt2400.spec	Tue Mar 14 17:26:30 2006
@@ -16,7 +16,7 @@
 Name:		rt2400
 Version:	1.2.2
 %define		snap -b3
-%define		_rel	2
+%define		_rel	3
 Release:	%{_rel}
 Group:		Base/Kernel
 License:	GPL v2
@@ -111,25 +111,35 @@
 	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
+	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
+%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
 %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
+        install -d o/include/asm
+        [ ! -d %{_kernelsrcdir}/include/asm-powerpc ] || ln -sf %{_kernelsrcdir}/include/asm-powerpc/* o/include/asm
+        [ ! -d %{_kernelsrcdir}/include/asm-%{_target_base_arch} ] || ln -snf %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* o/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}/Module.symvers-$cfg Module.symvers
-	touch include/config/MARKER
 	%{__make} -C %{_kernelsrcdir} clean \
 		RCS_FIND_IGNORE="-name '*.ko' -o" \
-		M=$PWD O=$PWD \
+		SYSSRC=%{_kernelsrcdir} \
+		SYSOUT=$PWD/o \
+		M=$PWD O=$PWD/o \
 		%{?with_verbose:V=1}
 	%{__make} -C %{_kernelsrcdir} modules \
-		M=$PWD O=$PWD \
+		CC="%{__cc}" CPP="%{__cpp}" \
+		SYSSRC=%{_kernelsrcdir} \
+		SYSOUT=$PWD/o \
+		M=$PWD O=$PWD/o \
 		%{?with_verbose:V=1}
 	mv rt2400{,-$cfg}.ko
 done
@@ -195,6 +205,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.34  2006/03/14 16:26:30  radek
+- release 3
+    She smells like template-kernel-module.spec ought to smell.
+    The perfect one.
+    The Goddess.
+    The %%build section.
+
 Revision 1.33  2006/01/12 20:21:47  arekm
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/rt2400.spec?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list