[openwrt/openwrt] kernel: r8101: fix CFLAGS with linux 6.15+

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 31 00:43:34 PST 2025


noltari pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b3d27b0115917f37f416460e3f1d458620374b99

commit b3d27b0115917f37f416460e3f1d458620374b99
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Tue Dec 30 14:44:10 2025 +0100

    kernel: r8101: fix CFLAGS with linux 6.15+
    
    Fix r8101 module CFLAGS with kernels >= v6.15.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 package/kernel/r8101/Makefile                      |  2 +-
 .../002-Makefile-fix-CFLAGS-with-linux-6.15.patch  | 26 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/package/kernel/r8101/Makefile b/package/kernel/r8101/Makefile
index f37e9acd0f..993e0de13a 100644
--- a/package/kernel/r8101/Makefile
+++ b/package/kernel/r8101/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=r8101
 PKG_VERSION:=1.039.00
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://github.com/openwrt/rtl8101/releases/download/$(PKG_VERSION)
diff --git a/package/kernel/r8101/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch b/package/kernel/r8101/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch
new file mode 100644
index 0000000000..22f5657c63
--- /dev/null
+++ b/package/kernel/r8101/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch
@@ -0,0 +1,26 @@
+From 1bb099396afa88077b93bfdbd4d20dbdacea36eb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari at gmail.com>
+Date: Tue, 30 Dec 2025 14:38:03 +0100
+Subject: [PATCH] Makefile: fix CFLAGS with linux 6.15+
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Ensure EXTRA_CFLAGS are taken into account.
+
+Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
+---
+ src/Makefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -64,6 +64,8 @@ ifneq ($(KERNELRELEASE),)
+ 	ifeq ($(CONFIG_CTAP_SHORT_OFF), y)
+ 		EXTRA_CFLAGS += -DCONFIG_CTAP_SHORT_OFF
+ 	endif
++
++	ccflags-y += $(EXTRA_CFLAGS)
+ else
+ 	BASEDIR := /lib/modules/$(shell uname -r)
+ 	KERNELDIR ?= $(BASEDIR)/build




More information about the lede-commits mailing list