Skip to content

Instantly share code, notes, and snippets.

@apraga
Last active January 22, 2023 20:09
Show Gist options
  • Save apraga/8c92f8013d96992b0f1e8dc23a609adc to your computer and use it in GitHub Desktop.
Save apraga/8c92f8013d96992b0f1e8dc23a609adc to your computer and use it in GitHub Desktop.
rtl18723 ebuild for Gentoo
# 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