SPECS (AC-branch): bcm5700.spec - fix alt_kernel build, rewrite Ma...

glen glen at pld-linux.org
Fri Feb 15 16:18:33 CET 2008


Author: glen                         Date: Fri Feb 15 15:18:33 2008 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- fix alt_kernel build, rewrite Makefile so it would build also on alpha

---- Files affected:
SPECS:
   bcm5700.spec (1.55.2.7 -> 1.55.2.8) 

---- Diffs:

================================================================
Index: SPECS/bcm5700.spec
diff -u SPECS/bcm5700.spec:1.55.2.7 SPECS/bcm5700.spec:1.55.2.8
--- SPECS/bcm5700.spec:1.55.2.7	Fri Feb 15 15:33:13 2008
+++ SPECS/bcm5700.spec	Fri Feb 15 16:18:28 2008
@@ -28,9 +28,9 @@
 License:	GPL v2
 Group:		Base/Kernel
 # extracted from http://www.broadcom.com/docs/driver_download/570x/linux-8.3.14.zip
-Source0:	%{name}-%{version}.tar.gz
+Source0:	%{pname}-%{version}.tar.gz
 # Source0-md5:	6dd814821f26ad67c7d7ce61c5275ca0
-Source1:	%{name}-Makefile
+Source1:	%{pname}-Makefile
 URL:		http://www.broadcom.com/drivers/downloaddrivers.php
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.14}
 BuildRequires:	rpmbuild(macros) >= 1.379
@@ -85,7 +85,14 @@
 Uwaga: ten sterownik Broadcomu jest przestarzały, należy używać tg3.
 
 %prep
-%setup -q
+%setup -q -n %{pname}-%{version}
+
+mv src/Makefile{,.orig}
+cat > src/Makefile << EOF
+obj-m += bcm5700.o
+bcm5700-objs := b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o tcp_seg.o b57diag.o
+EXTRA_CFLAGS = -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT -DINCLUDE_5701_AX_FIX=1
+EOF
 
 %build
 %build_kernel_modules -C src -m bcm5700
@@ -145,6 +152,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.55.2.8  2008-02-15 15:18:28  glen
+- fix alt_kernel build, rewrite Makefile so it would build also on alpha
+
 Revision 1.55.2.7  2008-02-15 14:33:13  glen
 - more alt_kernel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/bcm5700.spec?r1=1.55.2.7&r2=1.55.2.8&f=u



More information about the pld-cvs-commit mailing list