kernel: kmod-dsa-notag: Add driver

The CONFIG_B53 kernel config option will select this driver. Add
the driver to the kernel config menu and make kmod-dsa-b53 depend on
it.

Link: https://github.com/openwrt/openwrt/pull/19480
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens 2025-07-20 19:53:36 +02:00
parent 5a04f17857
commit 75f090ef96
1 changed files with 16 additions and 1 deletions

View File

@ -604,10 +604,25 @@ endef
$(eval $(call KernelPackage,dsa))
define KernelPackage/dsa-notag
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=DSA No-op tag driver
DEPENDS:=+kmod-dsa
KCONFIG:=CONFIG_NET_DSA_TAG_NONE
FILES:=$(LINUX_DIR)/net/dsa/tag_none.ko
endef
define KernelPackage/dsa-notag/description
Kernel module support for switches which don't tag frames over the CPU port.
endef
$(eval $(call KernelPackage,dsa-notag))
define KernelPackage/dsa-b53
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Broadcom BCM53xx managed switch DSA support
DEPENDS:=+kmod-dsa
DEPENDS:=+kmod-dsa +kmod-dsa-notag
KCONFIG:=CONFIG_B53 \
CONFIG_NET_DSA_TAG_BRCM \
CONFIG_NET_DSA_TAG_BRCM_LEGACY \