diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-07 15:29:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-07 15:29:02 +0100 |
commit | 2feda6d73f607acb2418f3c4410a5b34e706aa62 (patch) | |
tree | da4750d3b6129d1e9266fd6c0b17f6e217c52fed /sys-kernel/broadcom-sta-dkms | |
parent | 45b8068c8aba95385d1d44b03e5812f46069f73a (diff) |
sys-kernel/broadcom-sta-dkms : add kernel 5.1 compat patch
Diffstat (limited to 'sys-kernel/broadcom-sta-dkms')
-rw-r--r-- | sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r3.ebuild (renamed from sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r2.ebuild) | 20 | ||||
-rw-r--r-- | sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch | 15 | ||||
-rw-r--r-- | sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf | 8 |
3 files changed, 35 insertions, 8 deletions
diff --git a/sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r2.ebuild b/sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r3.ebuild index fb55cb82..cfc26418 100644 --- a/sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r2.ebuild +++ b/sys-kernel/broadcom-sta-dkms/broadcom-sta-dkms-6.30.223.271-r3.ebuild @@ -23,7 +23,7 @@ S="${WORKDIR}" src_prepare() { cp "${FILESDIR}"/dkms.conf "${S}" || die - + epatch \ "${FILESDIR}/broadcom-sta-6.30.223.141-makefile.patch" \ "${FILESDIR}/broadcom-sta-6.30.223.141-eth-to-wlan.patch" \ @@ -35,25 +35,29 @@ src_prepare() { "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-4.8.patch" \ "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-4.11.patch" \ "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-4.12.patch" \ - "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-4.15.patch" + "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-4.15.patch" \ + "${FILESDIR}/broadcom-sta-6.30.223.271-r4-linux-5.1.patch" epatch_user } src_compile(){ - : + : } src_install() { - dodir usr/src/${P} - insinto usr/src/${P} - doins -r "${S}"/* + dodir usr/src/${P} + insinto usr/src/${P} + doins -r "${S}"/* + dodir etc/modprobe.d + insinto etc/modprobe.d + doins "${FILESDIR}"/"${PN}".conf } pkg_postinst() { - dkms add ${PN}/${PV} + dkms add ${PN}/${PV} } pkg_prerm() { - dkms remove ${PN}/${PV} --all + dkms remove ${PN}/${PV} --all } diff --git a/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch new file mode 100644 index 00000000..6be2c4f5 --- /dev/null +++ b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch @@ -0,0 +1,15 @@ +diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c +index cdf8c01..63b5650 100644 +--- a/src/wl/sys/wl_cfg80211_hybrid.c ++++ b/src/wl/sys/wl_cfg80211_hybrid.c +@@ -52,6 +52,10 @@ u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO; + u32 wl_dbg_level = WL_DBG_ERR; + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) ++#define get_ds() ((mm_segment_t) { (-1UL) }) ++#endif ++ + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) + static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev, + enum nl80211_iftype type, struct vif_params *params); diff --git a/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf new file mode 100644 index 00000000..8266df4b --- /dev/null +++ b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf @@ -0,0 +1,8 @@ +blacklist b43 +blacklist b43legacy +blacklist ssb +blacklist bcm43xx +blacklist brcm80211 +blacklist brcmfmac +blacklist brcmsmac +blacklist bcma |