From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0C581581B9 for ; Tue, 23 Sep 2025 14:31:04 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9AB67340D69 for ; Tue, 23 Sep 2025 14:31:04 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8772B110573; Tue, 23 Sep 2025 14:31:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 7D62C110573 for ; Tue, 23 Sep 2025 14:31:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39A74335CC2 for ; Tue, 23 Sep 2025 14:31:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5E1739FD for ; Tue, 23 Sep 2025 14:31:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1758637781.54d74730c6f720cdc83dea767ddf85390fd7c4f0.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/r8125/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/r8125/Manifest net-misc/r8125/metadata.xml net-misc/r8125/r8125-9.016.01.ebuild X-VCS-Directories: net-misc/r8125/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 54d74730c6f720cdc83dea767ddf85390fd7c4f0 X-VCS-Branch: master Date: Tue, 23 Sep 2025 14:31:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a7626d87-58b6-4d28-9d9c-ae2a1e467a8f X-Archives-Hash: e526c5100b0248914aecc09a36bc6123 commit: 54d74730c6f720cdc83dea767ddf85390fd7c4f0 Author: Evgeny Grin (Karlson2k) drgrin dev> AuthorDate: Thu Sep 4 22:40:35 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Sep 23 14:29:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d74730 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) drgrin.dev> Part-of: https://github.com/gentoo/gentoo/pull/43668 Closes: https://github.com/gentoo/gentoo/pull/43668 Signed-off-by: Sam James gentoo.org> net-misc/r8125/Manifest | 1 + net-misc/r8125/metadata.xml | 1 + net-misc/r8125/r8125-9.016.01.ebuild | 63 ++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) diff --git a/net-misc/r8125/Manifest b/net-misc/r8125/Manifest index aa5cf2759eea..160a1ffc8356 100644 --- a/net-misc/r8125/Manifest +++ b/net-misc/r8125/Manifest @@ -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 diff --git a/net-misc/r8125/metadata.xml b/net-misc/r8125/metadata.xml index 55f6f120d58f..f46205cff18c 100644 --- a/net-misc/r8125/metadata.xml +++ b/net-misc/r8125/metadata.xml @@ -11,6 +11,7 @@ Official Realtek r8125 vendor linux driver. This driver supports NICs based on RTL8125 family. + Enable support for DMTF DASH out-of-band system management Reduce speed to 100 Mbps in WOL-only modes Enable Energy-Efficient Ethernet by default Enable Fiber PHY support diff --git a/net-misc/r8125/r8125-9.016.01.ebuild b/net-misc/r8125/r8125-9.016.01.ebuild new file mode 100644 index 000000000000..cb73bf3b96a9 --- /dev/null +++ b/net-misc/r8125/r8125-9.016.01.ebuild @@ -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 +}