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.
32 lines
1.7 KiB
32 lines
1.7 KiB
name=broadcom-wl
|
|
version=6_30_223_271
|
|
update_url="https://aur.archlinux.org/packages/$name-dkms/"
|
|
|
|
define_option "kver=$(uname -r): The kernel version we're building for"
|
|
|
|
dlextract "http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-$version.tar.gz" \
|
|
'115903050c41d466161784d4c843f4f9'
|
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/$name-dkms.conf?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
|
'b6e8ae4cf217bf68dcf08599bf43fce4'
|
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/001-null-pointer-fix.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
|
'fabbf528164f5e3a9dcf46f46a678f86'
|
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/002-rdtscl.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
|
'76c168a0271cb57d2539a10877979fbd'
|
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/003-linux47.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
|
'c5074307a37698b11780237beb8f52b2'
|
|
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/004-linux48.patch?h=$name-dkms&id=cea4c9bc92dab37ed89d2c68e9ce0a3896f34d71" \
|
|
'6ba8d147afe6112112b03af593ae38a0'
|
|
header_end
|
|
|
|
kver="$(option =kver)"
|
|
|
|
sed -i -e '/BRCM_WLAN_IFNAME/s:eth:wlan:' src/wl/sys/wl_linux.c
|
|
patch -p1 -i 001-null-pointer-fix.patch
|
|
patch -p1 -i 002-rdtscl.patch
|
|
patch -p1 -i 003-linux47.patch
|
|
patch -p1 -i 004-linux48.patch
|
|
make KBUILD_DIR="$dir_sysroot/lib/modules/$kver/build"
|
|
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"
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|
|
|