This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yml
72 lines (67 loc) · 2.68 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name : broadcom-sta
version : 6.30.223.271
release : 367
homepage : http://www.broadcom.com/support/802.11/linux_sta.php
source :
- https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz : 5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be
license : Distributable
summary :
- Broadcoms IEEE 802.11a/b/g/n hybrid Linux device driver
- common : Common components for broadcom-sta drivers
- current : broadcom-sta for linux-current kernel
- modaliases : These files are used by the Software Center for hardware detection.
description: |
Broadcoms IEEE 802.11a/b/g/n hybrid Linux device driver
component :
- kernel.drivers
- common : kernel.drivers
- current : kernel.drivers
- modaliases : kernel.drivers
builddeps :
- pkgconfig(libelf)
- linux-lts
- linux-lts-headers
- linux-current
- linux-current-headers
rundeps :
- broadcom-sta-common
- current :
- broadcom-sta-common
permanent :
- /lib/modules
patterns :
- common : /usr/lib/modprobe.d
- current : /lib/modules/*.current
- modaliases : /usr/share/linux-driver-management/modaliases
setup : |
# Apply patches for both kernels
%apply_patches
sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" -i src/wl/sys/wl_linux.c
pushd ..
cp -a build lts-build
cp -a build current-build
build : |
pushd ../lts-build
KERNEL_VERSION="%kernel_version_lts%"
%make -C /lib/modules/${KERNEL_VERSION}/build M=`pwd`
pushd ../current-build
KERNEL_VERSION="%kernel_version_current%"
%make -C /lib/modules/${KERNEL_VERSION}/build M=`pwd`
install : |
install -m 0755 -d $installdir/usr/lib/modprobe.d
MFILE="%installroot%/usr/lib/modprobe.d/broadcom-wl.conf"
echo "blacklist b43" > $MFILE
echo "blacklist ssb" >> $MFILE
echo "blacklist bcma" >> $MFILE
echo "blacklist brcmsmac" >> $MFILE
echo "blacklist brcmfmac">> $MFILE
pushd ../lts-build
KERNEL_VERSION="%kernel_version_lts%"
install -D -m 755 wl.ko $installdir/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/wl.ko
pushd ../current-build
KERNEL_VERSION="%kernel_version_current%"
install -D -m 755 wl.ko $installdir/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/wl.ko
# Let LDM know about our aliases
install -D -m 00644 $pkgfiles/broadcom-sta.modaliases $installdir/usr/share/linux-driver-management/modaliases/broadcom-sta.modaliases
# DON'T compress the modules with zstd because something somewhere uses a hardcoded path
# find "$installdir" -name '*.ko' -exec strip --strip-debug {} \; -exec zstd {} \; -exec rm -v {} \;