You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.7 KiB
33 lines
1.7 KiB
9 years ago
|
name=broadcom-wl
|
||
|
version=6_30_223_271
|
||
|
update_url="https://aur.archlinux.org/packages/$name-dkms/"
|
||
|
|
||
8 years ago
|
define_option "kver=$(uname -r): The kernel version we're building for"
|
||
9 years ago
|
|
||
9 years ago
|
dlextract "http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-$version.tar.gz" \
|
||
9 years ago
|
'115903050c41d466161784d4c843f4f9'
|
||
8 years ago
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/$name-dkms.conf?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
||
9 years ago
|
'b6e8ae4cf217bf68dcf08599bf43fce4'
|
||
8 years ago
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/001-null-pointer-fix.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
||
9 years ago
|
'fabbf528164f5e3a9dcf46f46a678f86'
|
||
8 years ago
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/002-rdtscl.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
||
9 years ago
|
'76c168a0271cb57d2539a10877979fbd'
|
||
8 years ago
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/003-linux47.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
||
9 years ago
|
'c5074307a37698b11780237beb8f52b2'
|
||
8 years ago
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/004-linux48.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
||
|
'6ba8d147afe6112112b03af593ae38a0'
|
||
9 years ago
|
header_end
|
||
|
|
||
9 years ago
|
kver="$(option =kver)"
|
||
|
|
||
|
sed -i -e '/BRCM_WLAN_IFNAME/s:eth:wlan:' src/wl/sys/wl_linux.c
|
||
9 years ago
|
patch -p1 -i 001-null-pointer-fix.patch
|
||
|
patch -p1 -i 002-rdtscl.patch
|
||
9 years ago
|
patch -p1 -i 003-linux47.patch
|
||
8 years ago
|
patch -p1 -i 004-linux48.patch
|
||
9 years ago
|
make KBUILD_DIR="$dir_sysroot/lib/modules/$kver/build"
|
||
8 years ago
|
install -Dm644 -t "$dir_install/lib/modules/$kver/kernel/drivers/net/wireless" wl.ko
|
||
|
install -Dm644 "$name-dkms.conf" "$dir_install/$dir_sysconfdir/modprobe.d/$name.conf"
|
||
9 years ago
|
|
||
8 years ago
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|