SPECS: bcm5700.spec - rel 2

arekm arekm at pld-linux.org
Sat Nov 12 12:34:45 CET 2005


Author: arekm                        Date: Sat Nov 12 11:34:45 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 2

---- Files affected:
SPECS:
   bcm5700.spec (1.44 -> 1.45) 

---- Diffs:

================================================================
Index: SPECS/bcm5700.spec
diff -u SPECS/bcm5700.spec:1.44 SPECS/bcm5700.spec:1.45
--- SPECS/bcm5700.spec:1.44	Sat Oct  8 18:06:35 2005
+++ SPECS/bcm5700.spec	Sat Nov 12 12:34:39 2005
@@ -15,7 +15,7 @@
 Summary(pl):	Sterownik dla Linuksa do kart sieciowych Broadcom NetXtreme BCM57xx
 Name:		bcm5700
 Version:	8.2.18
-%define		_rel	1
+%define		_rel	2
 Release:	%{_rel}
 License:	GPL v2
 Group:		Base/Kernel
@@ -27,9 +27,17 @@
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:	kernel-module-build >= 2.6.7}
 BuildRequires:	rpmbuild(macros) >= 1.153
+%ifarch sparc
+BuildRequires:  crosssparc64-gcc
+%endif
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch sparc
+%define         _target_base_arch       sparc64
+%define         _target_cpu             sparc64
+%endif
+
 %description
 This package contains the Linux driver for the Broadcom's NetXtreme BCM57xx Network Interface Cards.
 
@@ -85,7 +93,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
 
@@ -97,7 +115,12 @@
 		%{?with_verbose:V=1}
 	%{__make} -C %{_kernelsrcdir} modules \
 		%{?debug:DBG=1} \
-		CC="%{__cc}" CPP="%{__cpp}" \
+%if "%{_target_base_arch}" != "%{_arch}"
+                ARCH=%{_target_base_arch} \
+                CROSS_COMPILE=%{_target_cpu}-pld-linux- \
+%endif
+                HOSTCC="%{__cc}" \
+		CPP="%{__cpp}" \
 		M=$PWD O=$PWD \
 		%{?with_verbose:V=1}
 
@@ -164,6 +187,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.45  2005/11/12 11:34:39  arekm
+- rel 2
+
 Revision 1.44  2005/10/08 16:06:35  areq
 - 8.2.18
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bcm5700.spec?r1=1.44&r2=1.45&f=u




More information about the pld-cvs-commit mailing list