bcm53xx: make USB packages compatible with kernels 4.13+

In kernels 4.13+ modules are located in an extra "broadcom" subdir.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
openwrt-18.06
Rafał Miłecki 2017-12-29 17:15:32 +01:00
parent 302aa793c0
commit 6e922a0756
1 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,9 @@ define KernelPackage/phy-bcm-ns-usb2
KCONFIG:=CONFIG_PHY_BCM_NS_USB2
DEPENDS:=@TARGET_bcm53xx
SUBMENU:=$(USB_MENU)
FILES:=$(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb2.ko
FILES:=\
$(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb2.ko@lt4.13 \
$(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb2.ko@gt4.13
AUTOLOAD:=$(call AutoLoad,45,phy-bcm-ns-usb2,1)
endef
@ -25,7 +27,9 @@ define KernelPackage/phy-bcm-ns-usb3
KCONFIG:=CONFIG_PHY_BCM_NS_USB3
DEPENDS:=@TARGET_bcm53xx
SUBMENU:=$(USB_MENU)
FILES:=$(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb3.ko
FILES:=\
$(LINUX_DIR)/drivers/phy/phy-bcm-ns-usb3.ko@lt4.13 \
$(LINUX_DIR)/drivers/phy/broadcom/phy-bcm-ns-usb3.ko@ge4.13
AUTOLOAD:=$(call AutoLoad,45,phy-bcm-ns-usb3,1)
endef