mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
net-wireless/broadcom-sta: 7.1 Support
Fix broadcom to compile under 7.1 kernels. Due to the growing number of patches needed to keep this driver alive and workload seemingly being doubled up between Arch, Debian, Ubuntu and us, I request a central patch repo be created to help us pool resources. As Joan does nearly all the real work, they were the one to create this and allow us an easier way to give feedback and help where possible. https://github.com/joanbm/broadcom-wl-linux-mainline For us now though, the real benefit is clearing out the filedir patches which has been a long time overdue resolving. It was decided for this release to keep the patches in place and remove them at a later date so we can more easily revert is needed. Moving forward we only have to change the commit hash to keep up with new kernels and no longer need to edit patches to workaround an historical patch we did differently. Closes: https://bugs.gentoo.org/978232 Signed-off-by: Ian Jordan <immoloism@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46489 Closes: https://github.com/gentoo/gentoo/pull/46489 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
committed by
Andreas K. Hüttel
parent
b6b1dfb1ab
commit
548e547046
@@ -1,3 +1,4 @@
|
||||
DIST README-broadcom-sta-6.30.223.271.txt 17216 BLAKE2B af6db6e129911d1589d7d6cb7166bee32ce1ca98a4e5c9b3515a44e48681d8a7a7a6b697419b2bcd9c46f0f4ca1f7ece632b63531b4a4ecd91df4f9dddf043c9 SHA512 672ecc5afcd8535a9f8beb4baea5a40c584b7682844e9ff0e4f66b7406b42118a99dce1fcd580118187fdc506781334b8243082def2b78dce916d90c55ab3663
|
||||
DIST broadcom-6b1a7cc8dae345d249359b37dc2920776040beb2.tar.gz 19164 BLAKE2B 13224b1d31a19aceab5b22e379515efa221311a135b451da52022d78cc5d41e2480e7ee459f288246aa87949763d56c0cf0d20dcf2619d139544274996c0515f SHA512 2340e34d8412b4d75da03f57e7a2925067512dc5e903b4ea493f017b2f227f5b47ce8a6117861a0457737d98293abc7f8d214c9a1fb921d35d60d9a34d7a4d60
|
||||
DIST hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz 2869247 BLAKE2B 2e3189c468cec50b1a980452a4b2bd0f9657d9adf6fae2a95a8b1c2d1df2f5f6beb4cb903f72f444eddf823fe4375299864cd62191c9d59c4f77598b5d3aa246 SHA512 0361ba30d97bcb1dedf46c11ef1b9a16f09cde3faa6be87b3ccc28679f34183c2fdf511e7c3b5c26b304f6961da454ccf71844b92bbb2f25aa876249496a2f1b
|
||||
DIST hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz 2928541 BLAKE2B e9d01c1a1a63c07f720e3ee53ee3ef634ab12694135300cb0ce47ade0e9e0084967a0b6df64d983e8184240eb3defb128f650bddb7727e901d50315307f3398a SHA512 6855781f7c69a9aecb9461932423688964879d5a4df571f01ae7adaa7bf21a410bef839605d555afb6c8f4eec92fe8510af6cb120930095617ff6cdcccedaf17
|
||||
|
||||
@@ -5,6 +5,9 @@ EAPI=8
|
||||
|
||||
inherit linux-mod-r1
|
||||
|
||||
# Uses centralised patches from https://github.com/joanbm/broadcom-wl-linux-mainline/
|
||||
COMMIT=6b1a7cc8dae345d249359b37dc2920776040beb2
|
||||
|
||||
DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
|
||||
HOMEPAGE="https://www.broadcom.com/support/802.11"
|
||||
SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35"
|
||||
@@ -12,6 +15,7 @@ SRC_URI="
|
||||
x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
|
||||
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
|
||||
https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/README_${PV}.txt -> README-${P}.txt
|
||||
https://github.com/joanbm/broadcom-wl-linux-mainline/archive/${COMMIT}.tar.gz -> broadcom-${COMMIT}.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
@@ -24,30 +28,6 @@ RESTRICT="mirror"
|
||||
|
||||
DEPEND="virtual/linux-sources"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/001-null-pointer-fix.patch"
|
||||
"${FILESDIR}/002-rdtscl.patch"
|
||||
"${FILESDIR}/003-linux47.patch"
|
||||
"${FILESDIR}/004-linux48.patch"
|
||||
"${FILESDIR}/005-debian-fix-kernel-warnings.patch"
|
||||
"${FILESDIR}/006-linux411.patch"
|
||||
"${FILESDIR}/007-linux412.patch"
|
||||
"${FILESDIR}/008-linux415.patch"
|
||||
"${FILESDIR}/009-fix_mac_profile_discrepancy.patch"
|
||||
"${FILESDIR}/010-linux56.patch"
|
||||
"${FILESDIR}/011-linux59.patch"
|
||||
"${FILESDIR}/012-linux517.patch"
|
||||
"${FILESDIR}/013-linux518.patch"
|
||||
"${FILESDIR}/014-linux414.patch"
|
||||
"${FILESDIR}/015-linux600.patch"
|
||||
"${FILESDIR}/016-linux601.patch"
|
||||
"${FILESDIR}/017-handle-new-header-name-6.12.patch"
|
||||
"${FILESDIR}/018-broadcom-wl-fix-linux-6.13.patch"
|
||||
"${FILESDIR}/019-broadcom-wl-fix-linux-6.14.patch"
|
||||
"${FILESDIR}/020-broadcom-wl-fix-linux-6.15.patch"
|
||||
"${FILESDIR}/021-broadcom-wl-fix-linux-6.17.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
ewarn
|
||||
ewarn "If you are stuck using this unmaintained driver (likely in a MacBook),"
|
||||
@@ -95,6 +75,12 @@ pkg_setup() {
|
||||
linux-mod-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Apply all patches from zip downloaded earlier.
|
||||
eapply "${WORKDIR}/broadcom-wl-linux-mainline-${COMMIT}/patches/"*.patch
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local modlist=( wl )
|
||||
local modargs=(
|
||||
@@ -11,5 +11,6 @@
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">~albertomilone</remote-id>
|
||||
<remote-id type="github">joanbm/broadcom-wl-linux-mainline</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user