Last active
January 22, 2023 20:09
-
-
Save apraga/8c92f8013d96992b0f1e8dc23a609adc to your computer and use it in GitHub Desktop.
rtl18723 ebuild for Gentoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2023 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=8 | |
inherit git-r3 linux-mod linux-info | |
DESCRIPTION="Driver for the rtl8723 wireless chipset" | |
HOMEPAGE="https://github.com/lwfinger/rtl8723bu" | |
EGIT_REPO_URI="https://github.com/lwfinger/rtl8723bu.git" | |
LICENSE="GPL-2" | |
RDEPEND="sys-kernel/linux-firmware" | |
MODULE_NAMES="8723bu(net:)" | |
BUILD_TARGETS="all" | |
# WDisable concurrent mode to avoid 2 wifi interfaces (and the conflicts thereof). | |
src_prepare() { | |
default | |
sed -i '/EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE/s/^/#/' Makefile || die "sed failed !" | |
} | |
pkg_setup() { | |
linux-mod_pkg_setup | |
} | |
src_install() { | |
insinto /lib/firmware | |
doins rtl8723b_fw.bin | |
linux-mod_src_install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment