[openwrt/openwrt] kernel: usb: fix dependencies for kmod-usb-roles package
LEDE Commits
lede-commits at lists.infradead.org
Fri Aug 8 09:08:15 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0f782fc2e9ed25767b4351047e815e9dc8ac8298
commit 0f782fc2e9ed25767b4351047e815e9dc8ac8298
Author: Thomas Richard <thomas.richard at bootlin.com>
AuthorDate: Fri Jun 27 15:59:22 2025 +0200
kernel: usb: fix dependencies for kmod-usb-roles package
The usb role driver does not depend on the kernel config CONFIG_USB (host
side support). It only depends on the kernel config CONFIG_USB_SUPPORT.
Now it depends on the OpenWrt configurations USB_SUPPORT or
USB_GADGET_SUPPORT (usb and usbgadget features). We can assume that if usb
or usbgadget features are set, CONFIG_USB_SUPPORT has been set in the
target/subtarget kernel config.
Signed-off-by: Thomas Richard <thomas.richard at bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/19246
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/usb.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 239074de63..d3b37311bc 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1868,11 +1868,12 @@ endef
$(eval $(call KernelPackage,usb-net2280))
define KernelPackage/usb-roles
+ SUBMENU:=$(USB_MENU)
TITLE:=USB Role Switch Library Module
+ DEPENDS:=@USB_SUPPORT||USB_GADGET_SUPPORT
KCONFIG:=CONFIG_USB_ROLE_SWITCH
HIDDEN:=1
FILES:=$(LINUX_DIR)/drivers/usb/roles/roles.ko
- $(call AddDepends/usb)
endef
define KernelPackage/usb-roles/description
More information about the lede-commits
mailing list