kernel/modules: fix CDC NCM dependencies
authorRui Salvaterra <rsalvaterra@gmail.com>
Wed, 3 Mar 2021 14:24:17 +0000 (14:24 +0000)
committerPetr Štetiar <ynezz@true.cz>
Fri, 5 Mar 2021 13:41:14 +0000 (14:41 +0100)
CDC NCM support only depends on CDC Ethernet with Linux 5.10. Fix thusly.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
package/kernel/linux/modules/usb.mk

index e7498af31cfbee86c1c855501ef1dfda351be5d1..9ef3fb5974f1f3ebff86e302587146e5e386a2f8 100644 (file)
@@ -1387,7 +1387,7 @@ define KernelPackage/usb-net-cdc-ncm
   KCONFIG:=CONFIG_USB_NET_CDC_NCM
   FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
   AUTOLOAD:=$(call AutoProbe,cdc_ncm)
-  $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
+  $(call AddDepends/usb-net,+!LINUX_5_4:kmod-usb-net-cdc-ether)
 endef
 
 define KernelPackage/usb-net-cdc-ncm/description