mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
kernel: usb: fix dependencies for kmod-cdns3 and kmod-cdns
The cdns3 driver can be built without usb host mode support. Fix dependencies to handle the case it is built with only gadget support. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/19246 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
0546f8b74d
commit
96be6d4f8a
1 changed files with 7 additions and 5 deletions
|
|
@ -470,13 +470,15 @@ $(eval $(call KernelPackage,usb-dwc2-pci))
|
|||
|
||||
|
||||
define KernelPackage/usb-cdns
|
||||
SUBMENU:=$(USB_MENU)
|
||||
TITLE:=Cadence USB USB controller driver
|
||||
DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget +kmod-usb-roles
|
||||
DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget \
|
||||
+USB_SUPPORT:kmod-usb-core \
|
||||
+kmod-usb-roles
|
||||
KCONFIG:= \
|
||||
CONFIG_USB_CDNS_SUPPORT
|
||||
FILES:= $(LINUX_DIR)/drivers/usb/cdns3/cdns-usb-common.ko
|
||||
AUTOLOAD:=$(call AutoLoad,50,cdns-usb-common,1)
|
||||
$(call AddDepends/usb)
|
||||
endef
|
||||
|
||||
define KernelPackage/usb-cdns/description
|
||||
|
|
@ -488,15 +490,15 @@ $(eval $(call KernelPackage,usb-cdns))
|
|||
|
||||
|
||||
define KernelPackage/usb-cdns3
|
||||
SUBMENU:=$(USB_MENU)
|
||||
TITLE:=Cadence USB3 USB controller driver
|
||||
DEPENDS:=+kmod-usb-cdns
|
||||
KCONFIG:= \
|
||||
CONFIG_USB_CDNS3 \
|
||||
CONFIG_USB_CDNS3_GADGET=y \
|
||||
CONFIG_USB_CDNS3_HOST=y
|
||||
CONFIG_USB_CDNS3_GADGET=$(if $(CONFIG_USB_GADGET_SUPPORT),y,n) \
|
||||
CONFIG_USB_CDNS3_HOST=$(if $(CONFIG_USB_SUPPORT),y,n)
|
||||
FILES:= $(LINUX_DIR)/drivers/usb/cdns3/cdns3.ko
|
||||
AUTOLOAD:=$(call AutoLoad,54,cdns3,1)
|
||||
$(call AddDepends/usb)
|
||||
endef
|
||||
|
||||
define KernelPackage/usb-cdns3/description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue