summaryrefslogtreecommitdiff
path: root/net-wireless/rtl8723bu/rtl8723bu-9999.ebuild
blob: 3703f5962aa42b4301d5a4093e474f97d8a95128 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 linux-mod-r1

DESCRIPTION="Driver for the rtl8723 wireless chipset"
HOMEPAGE="https://github.com/lwfinger/rtl8723bu"
EGIT_REPO_URI="https://github.com/lwfinger/rtl8723bu.git"
EGIT_BRANCH=master

LICENSE="GPL-2"
SLOT="0"

RDEPEND="sys-kernel/linux-firmware"

# Concurrent mode should be disable to avoid 2 conflicting wifi interfaces
src_prepare() {
	default
	sed -i '/EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE/s/^/#/' Makefile || die "sed failed !"
}

src_compile() {
	local modlist=( 8723bu=net/wireless )
	local modargs=( KSRC="${KV_OUT_DIR}" )
	linux-mod-r1_src_compile
}

src_install() {
	insinto /lib/firmware
	doins rtl8723b_fw.bin

	linux-mod-r1_src_install
}