blob: 7c6f206bacf6776bfc50fd33a3c7b8d887c34632 (
plain)
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/broadcom-sta-5.100.82.38.ebuild,v 1.2 2011/01/25 14:04:20 hwoarang Exp $
EAPI="2"
inherit eutils linux-mod
DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver."
HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php"
SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_"
SRC_URI="x86? ( ${SRC_BASE}32-v${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}64-v${PV//\./_}.tar.gz )"
LICENSE="Broadcom"
KEYWORDS="amd64 ~x86"
IUSE=""
RESTRICT="mirror"
DEPEND=">=virtual/linux-sources-2.6.22"
RDEPEND=""
S="${WORKDIR}"
MODULE_NAMES="wl(net/wireless)"
MODULESD_WL_ALIASES=("wlan0 wl")
PROPERTIES="interactive"
pkg_setup() {
check_license
# bug #300570
# NOTE<lxnay>: module builds correctly anyway with b43 and SSB enabled
# make checks non-fatal. The correct fix is blackisting ssb and, perhaps
# b43 via udev rules. Moreover, previous fix broke binpkgs support.
CONFIG_CHECK="~!B43 ~!SSB"
if kernel_is ge 2 6 33; then
CONFIG_CHECK="${CONFIG_CHECK} LIB80211 WIRELESS_EXT CFG80211_WEXT WEXT_PRIV ~!MAC80211"
ERROR_WEXT_PRIV="Starting with 2.6.33, it is not possible to set WEXT_PRIV directly. We recommend to set another symbol selecting WEXT_PRIV, for example, PRISM54, IPW2200 and so on. See Bug #248450 comment#98."
elif kernel_is ge 2 6 31; then
CONFIG_CHECK="${CONFIG_CHECK} LIB80211 WIRELESS_EXT ~!MAC80211"
elif kernel_is ge 2 6 29; then
CONFIG_CHECK="${CONFIG_CHECK} LIB80211 WIRELESS_EXT ~!MAC80211 COMPAT_NET_DEV_OPS"
else
CONFIG_CHECK="${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP"
fi
linux-mod_pkg_setup
BUILD_PARAMS="-C ${KV_DIR} M=${S}"
BUILD_TARGETS="wl.ko"
}
src_prepare() {
epatch "${FILESDIR}/${PN}-5.10.91.9-license.patch" \
"${FILESDIR}/${PN}-5.100.82.38-gcc.patch"
}
|