How to build rtl8367s_gsw.ko?

Hello. I am using clear Openwrt 23.05.5 source.
I am not a new in Openwrt, but I am struggling for building rtl8367 kernel pack, that is located in:
target/linux/mediatek/files/driver/net/phy/rtk path.
In modules.builtin file I see:
kernel/drivers/net/phy/rtk/rtl8367s_gsw.ko
And in Makefile:

obj-$(CONFIG_RTL8367S_GSW) += rtl8367s_gsw.o
rtl8367s_gsw-objs := rtl8367s_mdio.o rtl8367s_dbg.o
ifeq ($(CONFIG_SWCONFIG),y)
rtl8367s_gsw-objs += rtl8367s.o
endif

CONFIG_RTL8367S_GSW=y in config file. I expect to get rtl8367s_gsw.ko in output. In build directory I see that rtl8367s_mdio.o and rtl8367s_dbg.o are compiled, but I cannot find rtl8367s_gsw.o or rtl8367s_gsw.ko anywhere.

Please, help. What is wrong? How can I get the valid rtl8367s_gsw.ko file?
Thanks.

Are you sure the y shouldn't be a m ?

1 Like

Thanks, this works. But I am wondering why 'y' flag is not allowed for this (like for addable packages)

It is, but y means it'll be added to the kernel, not as a separate file.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.