From 8b93c563add283612700a5fac8191e1d79895143 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 30 Dec 2025 14:45:15 +0100 Subject: [PATCH] kernel: r8168: fix CFLAGS with linux 6.15+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix r8168 module CFLAGS with kernels >= v6.15. Signed-off-by: Álvaro Fernández Rojas --- package/kernel/r8168/Makefile | 2 +- ...-Makefile-fix-CFLAGS-with-linux-6.15.patch | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 package/kernel/r8168/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch diff --git a/package/kernel/r8168/Makefile b/package/kernel/r8168/Makefile index 182950a624..812cbad61d 100644 --- a/package/kernel/r8168/Makefile +++ b/package/kernel/r8168/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=r8168 PKG_VERSION:=8.055.00 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://github.com/openwrt/rtl8168/releases/download/$(PKG_VERSION) diff --git a/package/kernel/r8168/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch b/package/kernel/r8168/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch new file mode 100644 index 0000000000..b3250db616 --- /dev/null +++ b/package/kernel/r8168/patches/002-Makefile-fix-CFLAGS-with-linux-6.15.patch @@ -0,0 +1,26 @@ +From b5a3eaec6a4ba859602a286fcb5034cf3f25fc55 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= +Date: Tue, 30 Dec 2025 14:35: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 +--- + src/Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/src/Makefile ++++ b/src/Makefile +@@ -121,6 +121,8 @@ ifneq ($(KERNELRELEASE),) + ifeq ($(ENABLE_GIGA_LITE), y) + EXTRA_CFLAGS += -DENABLE_GIGA_LITE + endif ++ ++ ccflags-y += $(EXTRA_CFLAGS) + else + BASEDIR := /lib/modules/$(shell uname -r) + KERNELDIR ?= $(BASEDIR)/build -- 2.30.2