net-misc/r8125: add new 9.016.01 upstream version

Also add new 'dash' USE flag as upstream finally published DASH sources.

Signed-off-by: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Part-of: https://github.com/gentoo/gentoo/pull/43668
Closes: https://github.com/gentoo/gentoo/pull/43668
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Evgeny Grin (Karlson2k)
2025-09-05 00:40:35 +02:00
committed by Sam James
parent 7822ff66bc
commit 54d74730c6
3 changed files with 65 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ DIST r8125-9.013.02.tar.bz2 105923 BLAKE2B 0ae1a6a7ad651d30ac2ca29ab98af06c6facc
DIST r8125-9.014.01.tar.bz2 111465 BLAKE2B ae09f27b617422e03484b10dfe7dcee14f58bc05650a80b654f9c02ba678424643575346312dae9ce327c309bf1afc575aec00e740a20fc4347c9c3bd00744ba SHA512 a12902e3e9dc34ae999080c1971a8ec9640d62f12a5648ddca0812d93d6c411c2c270e8c6de481fef23a982e8722e8515e5a3aa5c2d84cbdb4e6fa9da730c1e2
DIST r8125-9.015.00.tar.bz2 112287 BLAKE2B cadb5fc4fbb633a61284683d6ebb1233692fd496d2c436f7e26352193397cf8e0a23a40b5e3f00273f08ade254d61579474c21a57c5b118aceabd4d1269a2665 SHA512 3dcd3d2a9052738589dc85e7d2ecc79a41e3bd1868c58c370a21d6d6ce9acf758f53e9853fdcf0ef20c28014035ef58934145294269ce758c11e5666f526c008
DIST r8125-9.016.00.tar.bz2 122011 BLAKE2B 00ffd6d2d31c6425c9cce1b8cb6191d712c940677df9038451ff4719d8b8b243b87e2dcfd5d4f6e502ca6be285203a30fbbb9ae8b809100e3b68628b93535f84 SHA512 46d014e5d1790a1a9f184f25d1df1682970cec2f30f25429b89de2ab461639bd0b36d0d13125bd58534fd6589d96c74ec30a668b33d0d444b8ed3c4cc3b41527
DIST r8125-9.016.01.tar.bz2 124146 BLAKE2B 0b7e55d38f716087d66dff9d7ee6ae1cff0e9a082d356c3905aae051ad248ba35c594779fefea6a69cfc1ebc80b4f903f4e48f14e08fbac9738ba6b8c8fbbd98 SHA512 698345dabf9c4aad8759618502be0f09c313793dd1b516b18be08cee7d136f90546f77c8c7da9e3f3fbef1749638524f06ae1a09f5c6058509d8d02c522538b8

View File

@@ -11,6 +11,7 @@
</maintainer>
<longdescription>Official Realtek r8125 vendor linux driver. This driver supports NICs based on RTL8125 family.</longdescription>
<use>
<flag name="dash">Enable support for DMTF DASH out-of-band system management</flag>
<flag name="down-speed-100">Reduce speed to 100 Mbps in WOL-only modes</flag>
<flag name="eee">Enable Energy-Efficient Ethernet by default</flag>
<flag name="fiber">Enable Fiber PHY support</flag>

View File

@@ -0,0 +1,63 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod-r1
DESCRIPTION="r8125 vendor driver for Realtek RTL8125 PCI-E NICs"
HOMEPAGE="https://www.realtek.com/Download/List?cate_id=584"
# Mirrored to avoid captcha
SRC_URI="https://github.com/Karlson2k/r8125/releases/download/${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dash down-speed-100 fiber hw-acceleration hw-optim-tx +eee +giga-lite +multi-tx-q ptp +rss s5-keep-mac use-firmware +wol-s5 +wol"
PATCHES=(
"${FILESDIR}/${PN}-9.016.00-fix-build-with-firmware.patch"
)
CONFIG_CHECK="~!R8169"
WARNING_R8169="CONFIG_R8169 is enabled. ${PN} will not be loaded unless kernel driver Realtek 8169 PCI Gigabit Ethernet (CONFIG_R8169) is DISABLED."
src_prepare() {
default
# Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
# with proper CFLAGS_MODULE (available since 2.6.36).
# Bug 957883
sed -E -i'' \
-e 's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
src/Makefile || die
}
src_compile() {
local modlist=( ${PN}=kernel/drivers/net/ethernet/realtek:src )
local modargs=(
# Build parameters
KERNELDIR="${KV_OUT_DIR}"
# Code build options
ENABLE_DASH_SUPPORT=$(usex dash y n)
ENABLE_FIBER_SUPPORT=$(usex fiber y n)
ENABLE_RSS_SUPPORT=$(usex rss y n)
ENABLE_MULTIPLE_TX_QUEUE=$(usex multi-tx-q y n)
ENABLE_USE_FIRMWARE_FILE=$(usex use-firmware y n)
CONFIG_DOWN_SPEED_100=$(usex down-speed-100 y n)
ENABLE_PTP_SUPPORT=$(usex ptp y n)
ENABLE_PAGE_REUSE=y
ENABLE_RX_PACKET_FRAGMENT=y
# Driver defaults
CONFIG_SOC_LAN=$(usex hw-acceleration y n)
ENABLE_TX_NO_CLOSE=$(usex hw-optim-tx y n)
ENABLE_EEE=$(usex eee y n)
ENABLE_GIGA_LITE=$(usex giga-lite y n)
DISABLE_WOL_SUPPORT=$(usex wol n y)
ENABLE_S5WOL=$(usex wol-s5 y n)
ENABLE_S5_KEEP_CURR_MAC=$(usex s5-keep-mac y n)
)
linux-mod-r1_src_compile
}