mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 12:05:23 +00:00
kernel: fix kmod-usb3 on platforms without PCI
Partially restore the wild-card matching for kmod-usb3 modules to fix build on platforms without PCI which otherwise file, as seen on buildbot: ERROR: module '[...]/linux-5.4.102/drivers/usb/host/xhci-pci.ko' is missing. modules/usb.mk:1675: recipe for target '[...]/kmod-usb3_5.4.102-1_mips_mips32.ipk' failed Fixes:7bda2e9aba
("kernel: fix kmod-usb3 dependencies") Fixes:be23f9818a
("apm821xx: add support for kernel 5.10") Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
20bef46310
commit
35b6ac203e
@ -1649,6 +1649,10 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,usbmon))
|
$(eval $(call KernelPackage,usbmon))
|
||||||
|
|
||||||
|
XHCI_MODULES := xhci-pci xhci-plat-hcd
|
||||||
|
XHCI_FILES := $(wildcard $(patsubst %,$(LINUX_DIR)/drivers/usb/host/%.ko,$(XHCI_MODULES)))
|
||||||
|
XHCI_AUTOLOAD := $(patsubst $(LINUX_DIR)/drivers/usb/host/%.ko,%,$(XHCI_FILES))
|
||||||
|
|
||||||
define KernelPackage/usb3
|
define KernelPackage/usb3
|
||||||
TITLE:=Support for USB3 controllers
|
TITLE:=Support for USB3 controllers
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
@ -1662,9 +1666,8 @@ define KernelPackage/usb3
|
|||||||
CONFIG_USB_XHCI_PCI \
|
CONFIG_USB_XHCI_PCI \
|
||||||
CONFIG_USB_XHCI_PLATFORM
|
CONFIG_USB_XHCI_PLATFORM
|
||||||
FILES:= \
|
FILES:= \
|
||||||
$(LINUX_DIR)/drivers/usb/host/xhci-pci.ko \
|
$(XHCI_FILES)
|
||||||
$(LINUX_DIR)/drivers/usb/host/xhci-plat-hcd.ko
|
AUTOLOAD:=$(call AutoLoad,54,$(XHCI_AUTOLOAD),1)
|
||||||
AUTOLOAD:=$(call AutoLoad,54,xhci-pci xhci-plat-hcd,1)
|
|
||||||
$(call AddDepends/usb)
|
$(call AddDepends/usb)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user