Skip to content

Commit 8b93c56

Browse files
committed
kernel: r8168: fix CFLAGS with linux 6.15+
Fix r8168 module CFLAGS with kernels >= v6.15. Signed-off-by: Álvaro Fernández Rojas <[email protected]>
1 parent b3d27b0 commit 8b93c56

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

package/kernel/r8168/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=r8168
44
PKG_VERSION:=8.055.00
5-
PKG_RELEASE:=4
5+
PKG_RELEASE:=5
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
88
PKG_SOURCE_URL:=https://github.com/openwrt/rtl8168/releases/download/$(PKG_VERSION)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From b5a3eaec6a4ba859602a286fcb5034cf3f25fc55 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <[email protected]>
3+
Date: Tue, 30 Dec 2025 14:35:03 +0100
4+
Subject: [PATCH] Makefile: fix CFLAGS with linux 6.15+
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
Ensure EXTRA_CFLAGS are taken into account.
10+
11+
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
12+
---
13+
src/Makefile | 2 ++
14+
1 file changed, 2 insertions(+)
15+
16+
--- a/src/Makefile
17+
+++ b/src/Makefile
18+
@@ -121,6 +121,8 @@ ifneq ($(KERNELRELEASE),)
19+
ifeq ($(ENABLE_GIGA_LITE), y)
20+
EXTRA_CFLAGS += -DENABLE_GIGA_LITE
21+
endif
22+
+
23+
+ ccflags-y += $(EXTRA_CFLAGS)
24+
else
25+
BASEDIR := /lib/modules/$(shell uname -r)
26+
KERNELDIR ?= $(BASEDIR)/build

0 commit comments

Comments
 (0)