Sisyphus repository
Last update: 3 march 2021 | SRPMs: 17840 | Visits: 20384434
en ru br
ALT Linux repos

Group :: System/Kernel and hardware
RPM: kernel-modules-bcmwl-std-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define module_name bcmwl
%define module_version
%define module_release alt19

%define flavour std-def
%define karch %ix86 x86_64
BuildRequires(pre): rpm-build-kernel
BuildRequires(pre): kernel-headers-modules-std-def

%setup_kernel_module %flavour

%define norm_version %kversion

%define module_dir /lib/modules/%kversion-%flavour-%krelease/net

Summary: Modules for Broadcom-based WiFi .11a/b/g adapters
Name: kernel-modules-%module_name-%flavour
Version: %module_version
Release: %module_release.%kcode.%kbuildrelease
License: Proprietary
Group: System/Kernel and hardware

Packager: Kernel Maintainer Team <kernel at>

ExclusiveOS: Linux
Patch1: bcmwl-build-kernel3.15.patch
Patch2: bcmwl-build-kernel3.17.patch
Patch3: bcmwl-build-kernel3.18.patch
Patch4: bcmwl-build-kernel4.0.patch
Patch5: bcmwl-fix.patch
Patch6: bcmwl-build-4.2.patch
Patch7: bcmwl-build-kernel4.3.patch
Patch8: bcmwl-build-kernel4.7.patch
Patch9: bcmwl-build-kernel4.8.patch
Patch11: bcmwl-build-kernel4.11.patch
Patch12: bcmwl-build-kernel4.12.patch
Patch15: bcmwl-build-kernel4.15.patch
Patch51: bcmwl-build-kernel5.1.patch
Patch56: bwcmwl-arch-build-kernel5.6.patch
Patch59: bcmwl-build-kernel5.9.patch
BuildRequires: perl sharutils
BuildRequires(pre): rpm-build-kernel
BuildRequires: kernel-source-%module_name = %module_version
BuildRequires: kernel-headers-modules-%flavour = %kepoch%kversion-%krelease

Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

PreReq: kernel-image-%flavour = %kepoch%kversion-%krelease
ExclusiveArch: %karch

These packages contain Broadcom's IEEE 802.11a/b/g/n hybrid Linux device
driver for use with Broadcom's BCM4311-, BCM431i2-,
BCM4321-, and BCM4322-based hardware.

NOTE: You must read the LICENSE.TXT file in the lib directory before
using this software.
rm -rf kernel-source-%module_name-%module_version

tar -jxvf %kernel_src/kernel-source-%module_name-%module_version.tar.bz2

%setup -D -T -n kernel-source-%module_name-%module_version
pushd bcmwl
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p2
%patch7 -p0
%patch8 -p0
%patch9 -p1
%patch11 -p1
%patch12 -p1
%patch15 -p1
%patch51 -p1
%patch56 -p1
%patch59 -p2

cd bcmwl
mkdir lib
if [ "$(arch)" = "x86_64" ] ; then
  cp src/lib/wlc_hybrid.o_shipped_x86_64 lib/wlc_hybrid.o_shipped
  cp src/lib/wlc_hybrid.o_shipped_i386 lib/wlc_hybrid.o_shipped
. %_usrsrc/linux-%kversion-%flavour/
make -C %_usrsrc/linux-%kversion-%flavour M=`pwd` modules

mkdir -p $RPM_BUILD_ROOT%module_dir/

cd bcmwl
. %_usrsrc/linux-%kversion-%flavour/
make -C %_usrsrc/linux-%kversion-%flavour INSTALL_MOD_PATH=%buildroot INSTALL_MOD_DIR=net M=`pwd`  modules_install

# blacklist several modules (see ALT bugs #26265, #26250)

mkdir -p %buildroot/%_sysconfdir/modprobe.d
cat > %buildroot/%_sysconfdir/modprobe.d/blacklist-bcm.conf << __EOF__
blacklist bcm43xx
blacklist ssb
blacklist b43
cat > %buildroot/%_sysconfdir/modprobe.d/blacklist-bcm2.conf << __EOF__
blacklist b44
blacklist b43legacy
blacklist bcma
blacklist brcmsmac
blacklist bcma-pci-bridge

%config(noreplace) %_sysconfdir/modprobe.d/blacklist-bcm.conf
%config(noreplace) %_sysconfdir/modprobe.d/blacklist-bcm2.conf


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin