]> git.pld-linux.org Git - packages/wl.git/commitdiff
- x86_64 version added; cleanup; now builds; rel 0.2
authorzbyniu <zbyniu@pld-linux.org>
Sat, 28 Nov 2009 12:20:50 +0000 (12:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-net-wl.spec -> 1.2

kernel-net-wl.spec

index 23c4709ce929a3cd245bcab3383d5d88b992a49c..af37ad31852393f82bb8fc888e6a2f4649c7bc2c 100644 (file)
@@ -1,24 +1,10 @@
 # Conditional build:
 %bcond_without dist_kernel     # allow non-distribution kernel
-%bcond_without kernel          # don't build kernel modules
-%bcond_without userspace       # don't build userspace programs
 %bcond_with    verbose         # verbose build (V=1)
 
-%if %{without kernel}
-%undefine      with_dist_kernel
-%endif
-%if "%{_alt_kernel}" != "%{nil}"
-%undefine      with_userspace
-%endif
-%if %{without userspace}
-# nothing to be placed to debuginfo package
 %define                _enable_debug_packages  0
-%endif
 
-#
-# main package.
-#
-%define                rel     0.1
+%define                rel     0.2
 %define                pname   wl
 Summary:       Linux kernel module to BCM network cards
 Name:          %{pname}%{_alt_kernel}
@@ -28,13 +14,14 @@ License:    other
 Group:         Base/Kernel
 Source0:       http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32-v%{version}.tar.gz
 # Source0-md5: 15890e1f9afe844adf2e251d390e28ac
-Source1:       http://www.broadcom.com/docs/linux_sta/README.txt
-# Source1-md5: b3510ce9efc0395021b317f54f645b5d
+Source1:       http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_64-v%{version}.tar.gz
+# Source1-md5: ed255d2c98690ef76757d95b2d9e6b32
+Source2:       http://www.broadcom.com/docs/linux_sta/README.txt
+# Source2-md5: b3510ce9efc0395021b317f54f645b5d
 URL:           http://www.broadcom.com/support/802.11/linux_sta.php
-%if %{with kernel}
 %{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRequires: rpmbuild(macros) >= 1.379
-%endif
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -42,8 +29,6 @@ These packages contain Broadcom's IEEE 802.11a/b/g/n hybrid Linux
 device driver for use with Broadcom's BCM4311-, BCM4312-, BCM4321-,
 and BCM4322-based hardware.
 
-# kernel subpackages.
-
 %package -n kernel%{_alt_kernel}-net-wl
 Summary:       Linux driver for wl
 Summary(pl.UTF-8):     Sterownik dla Linuksa do wl
@@ -63,55 +48,33 @@ BCM4311-, BCM4312-, BCM4321-, and BCM4322-based hardware.
 This package contains Linux module.
 
 %prep
-%setup -q -c -n %{pname}-%{version}
+%ifarch %{x8664}
+%define                src 1
+%else
+%define                src 0
+%endif
+%setup -c -T -q -n %{pname}-%{version} -b%src
 
 cat > Makefile << EOF
+obj-m  += wl.o
 
-obj-m += wl.o
+wl-objs                := src/wl/sys/wl_linux.o
+wl-objs                += src/wl/sys/wl_iw.o
+wl-objs                += src/shared/linux_osl.o
 
-wl-objs            :=
-wl-objs            += src/wl/sys/wl_linux.o
-wl-objs            += src/wl/sys/wl_iw.o
-wl-objs            += src/shared/linux_osl.o
+EXTRA_CFLAGS   := -I%{_builddir}/%{pname}-%{version}/src/include
+EXTRA_CFLAGS   += -I%{_builddir}/%{pname}-%{version}/src/wl/sys
 
-EXTRA_CFLAGS       :=
-EXTRA_CFLAGS       += -I%{_builddir}/%{pname}-%{version}/src/include
-EXTRA_CFLAGS       += -I%{_builddir}/%{pname}-%{version}/src/wl/sys
-EXTRA_CFLAGS += -DCONFIG_MODULE_NAME_SOME_OPTION=1
-%{?debug:CFLAGS += -DCONFIG_MODULE_NAME_DEBUG=1}
+EXTRA_LDFLAGS  := $PWD/lib/wlc_hybrid.o_shipped
 EOF
 
-
 %build
-%if %{with userspace}
-
-
-%endif
-
-%if %{with kernel}
-
 %build_kernel_modules -m wl
 
-# modules placed in subdirectory:
-# %build_kernel_modules -C -m wl
-
-%endif
-
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%if %{with userspace}
-
-
-%endif
-
-%if %{with kernel}
 %install_kernel_modules -m wl -d kernel/net/wireless
 
-# to avoid conflict with in-kernel modules, and prepare modprobe config:
-%install_kernel_modules -s current -n NAME -m wl -d kernel/drivers/net/wireless
-%endif
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -121,14 +84,7 @@ rm -rf $RPM_BUILD_ROOT
 %postun        -n kernel%{_alt_kernel}-net-wl
 %depmod %{_kernel_ver}
 
-%if %{with kernel}
 %files -n kernel%{_alt_kernel}-net-wl
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/kernel/net/*.ko*
-%endif
-
-%if %{with userspace}
-%files
-%defattr(644,root,root,755)
-
-%endif
+%doc lib/LICENSE.txt
+/lib/modules/%{_kernel_ver}/kernel/net/wireless/*.ko*
This page took 0.11774 seconds and 4 git commands to generate.