44# r8125 is the Linux device driver released for Realtek 2.5 Gigabit Ethernet
55# controllers with PCI-Express interface.
66#
7- # Copyright(c) 2024 Realtek Semiconductor Corp. All rights reserved.
7+ # Copyright(c) 2025 Realtek Semiconductor Corp. All rights reserved.
88#
99# This program is free software; you can redistribute it and/or modify it
1010# under the terms of the GNU General Public License as published by the Free
3333CONFIG_SOC_LAN = n
3434ENABLE_REALWOW_SUPPORT = n
3535ENABLE_DASH_SUPPORT = n
36- ENABLE_DASH_PRINTER_SUPPORT = n
3736CONFIG_DOWN_SPEED_100 = n
3837CONFIG_ASPM = y
3938ENABLE_S5WOL = y
@@ -52,6 +51,7 @@ DISABLE_MULTI_MSIX_VECTOR = n
5251ENABLE_DOUBLE_VLAN = n
5352ENABLE_PAGE_REUSE = n
5453ENABLE_RX_PACKET_FRAGMENT = n
54+ ENABLE_GIGA_LITE = n
5555
5656ifneq ($(KERNELRELEASE ) ,)
5757 obj-m := r8125.o
@@ -67,10 +67,6 @@ ifneq ($(KERNELRELEASE),)
6767 r8125-objs += r8125_dash.o
6868 EXTRA_CFLAGS += -DENABLE_DASH_SUPPORT
6969 endif
70- ifeq ($(ENABLE_DASH_PRINTER_SUPPORT), y)
71- r8125-objs += r8125_dash.o
72- EXTRA_CFLAGS += -DENABLE_DASH_SUPPORT -DENABLE_DASH_PRINTER_SUPPORT
73- endif
7470 EXTRA_CFLAGS += -DCONFIG_R8125_NAPI
7571 EXTRA_CFLAGS += -DCONFIG_R8125_VLAN
7672 ifeq ($(CONFIG_DOWN_SPEED_100), y)
@@ -131,6 +127,12 @@ ifneq ($(KERNELRELEASE),)
131127 ifeq ($(ENABLE_RX_PACKET_FRAGMENT), y)
132128 EXTRA_CFLAGS += -DENABLE_RX_PACKET_FRAGMENT
133129 endif
130+ ifeq ($(ENABLE_GIGA_LITE), y)
131+ EXTRA_CFLAGS += -DENABLE_GIGA_LITE
132+ endif
133+
134+ # Backward compatibility
135+ ccflags-y += $(EXTRA_CFLAGS)
134136else
135137 BASEDIR := /lib/modules/$(shell uname -r)
136138 KERNELDIR ?= $(BASEDIR)/build
0 commit comments