SPECS: rt2500.spec - rel .2

arekm arekm at pld-linux.org
Sat Nov 12 13:03:30 CET 2005


Author: arekm                        Date: Sat Nov 12 12:03:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel .2

---- Files affected:
SPECS:
   rt2500.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/rt2500.spec
diff -u SPECS/rt2500.spec:1.11 SPECS/rt2500.spec:1.12
--- SPECS/rt2500.spec:1.11	Thu Sep 15 20:25:05 2005
+++ SPECS/rt2500.spec	Sat Nov 12 13:03:25 2005
@@ -12,7 +12,7 @@
 Name:		rt2500
 Version:	1.1.0
 %define		_subver	b3
-%define		_rel	0.%{_subver}.1
+%define		_rel	0.%{_subver}.2
 Release:	%{_rel}
 Group:		Base/Kernel
 License:	GPL v2
@@ -22,6 +22,9 @@
 Patch0:		%{name}-qt.patch
 URL:		http://rt2x00.serialmonkey.com/
 %if %{with kernel}
+%ifarch sparc
+BuildRequires:  crosssparc64-gcc
+%endif
 %{?with_dist_kernel:BuildRequires:	kernel-module-build >= 2.6.7}
 BuildRequires:	rpmbuild(macros) >= 1.217
 %endif
@@ -33,6 +36,11 @@
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch sparc
+%define         _target_base_arch	sparc64
+%define         _target_base_cpu	sparc64
+%endif
+
 %description
 A configuartion tool for WLAN cards based on RT2500.
 
@@ -109,7 +117,17 @@
 	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
+%ifarch ppc
+        if [ -d "%{_kernelsrcdir}/include/asm-powerpc" ]; then
+                install -d include/asm
+                cp -a %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
+                cp -a %{_kernelsrcdir}/include/asm-powerpc/* include/asm
+        else
+                ln -sf %{_kernelsrcdir}/include/asm-powerpc include/asm
+        fi
+%else
+        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
 	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
 	touch include/config/MARKER
 	%{__make} -C %{_kernelsrcdir} clean \
@@ -117,6 +135,11 @@
 		M=$PWD O=$PWD \
 		%{?with_verbose:V=1}
 	%{__make} -C %{_kernelsrcdir} modules \
+%if "%{_target_base_arch}" != "%{_arch}"
+                ARCH=%{_target_base_arch} \
+                CROSS_COMPILE=%{_target_base_cpu}-pld-linux- \
+%endif
+                HOSTCC="%{__cc}" \
 		M=$PWD O=$PWD \
 		%{?with_verbose:V=1}
 	mv rt2500{,-$cfg}.ko
@@ -183,6 +206,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2005/11/12 12:03:25  arekm
+- rel .2
+
 Revision 1.11  2005/09/15 18:25:05  sparky
 - prepared for kernel >= 2.6.13: link Module.symvers
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/rt2500.spec?r1=1.11&r2=1.12&f=u




More information about the pld-cvs-commit mailing list