]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dsa: allow building as a module main master 22121/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 20 Feb 2026 19:51:05 +0000 (20:51 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 23 Feb 2026 21:03:03 +0000 (22:03 +0100)
The makefile recipe is wrong and a module compilation tries
to build each object individually. Fix that. This allows to
build the dsa driver as a module.

Suggested-by: Balázs Triszka <info@balika011.hu>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22121
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/Makefile

index 8752c797004d7499339afbc6a4bd327846d8fe80..1511dae8eac3a50b9efc016088042d2eaf1ef66f 100644 (file)
@@ -1,3 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_NET_DSA_RTL83XX)  += common.o dsa.o \
-       rtl838x.o rtl839x.o rtl930x.o rtl931x.o debugfs.o qos.o tc.o
+obj-$(CONFIG_NET_DSA_RTL83XX) += rtl_otto_dsa.o
+rtl_otto_dsa-objs := common.o dsa.o rtl838x.o rtl839x.o rtl930x.o rtl931x.o debugfs.o qos.o tc.o