SPECS: em8300.spec - try use kernel build module macros

glen glen at pld-linux.org
Thu Jul 3 12:48:19 CEST 2008


Author: glen                         Date: Thu Jul  3 10:48:19 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- try use kernel build module macros

---- Files affected:
SPECS:
   em8300.spec (1.54 -> 1.55) 

---- Diffs:

================================================================
Index: SPECS/em8300.spec
diff -u SPECS/em8300.spec:1.54 SPECS/em8300.spec:1.55
--- SPECS/em8300.spec:1.54	Thu Apr  3 22:46:33 2008
+++ SPECS/em8300.spec	Thu Jul  3 12:48:13 2008
@@ -124,42 +124,9 @@
 %endif
 
 %if %{with kernel}
-cd modules
-for cfg in %{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}; do
-	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
-		exit 1
-	fi
-	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} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
-%endif
-	install -d o/include/config
-	touch o/include/config/MARKER
-	ln -sf %{_kernelsrcdir}/scripts o/scripts
-
+%build_kernel_modules -C modules -m em8300,adv717x,bt865 <<'EOF'
 	cp ../include/linux/em8300.h o/include/linux/em8300.h
-
-	%{__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 \
-        CC="%{__cc}" CPP="%{__cpp}" \
-		SYSSRC=%{_kernelsrcdir} \
-		SYSOUT=$PWD/o \
-		M=$PWD O=$PWD/o \
-		%{?with_verbose:V=1}
-
-	for i in em8300 adv717x bt865; do
-		mv $i{,-$cfg}.ko
-	done
-done
-%endif
+EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -237,7 +204,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.54  2008/04/03 20:46:33  glen
+Revision 1.55  2008/07/03 10:48:13  glen
+- try use kernel build module macros
+
+Revision 1.54  2008-04-03 20:46:33  glen
 - drop up/smp
 
 Revision 1.53  2008-04-03 20:39:52  glen
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/em8300.spec?r1=1.54&r2=1.55&f=u



More information about the pld-cvs-commit mailing list