treewide: make dependency on kmod-usb-net selective
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 5 Aug 2020 10:03:13 +0000 (12:03 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 10 Aug 2020 10:54:30 +0000 (12:54 +0200)
A bunch of kernel modules depends on kmod-usb-net, but does not
select it. Make AddDepends/usb-net selective, so we can drop
some redundant +kmod-usb-net definitions for DEVICE_PACKAGES.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/kernel/linux/modules/usb.mk
target/linux/ath79/image/generic-tp-link.mk
target/linux/ath79/image/generic.mk
target/linux/mxs/profiles/02-olinuxino-maxi.mk
target/linux/omap/image/Makefile
target/linux/omap/profiles/00-default.mk
target/linux/ramips/image/mt7620.mk
target/linux/ramips/image/rt305x.mk
target/linux/rockchip/image/armv8.mk
target/linux/sunxi/image/cortexa7.mk

index e833c139a0e9d66399dac2a88106b5f67400ad0b..e4f6a226fdfc90c26bcaafea7a33277bbf76dee1 100644 (file)
@@ -1136,7 +1136,7 @@ $(eval $(call KernelPackage,usb-net))
 
 define AddDepends/usb-net
   SUBMENU:=$(USB_MENU)
-  DEPENDS+=kmod-usb-net $(1)
+  DEPENDS+=+kmod-usb-net $(1)
 endef
 
 
index 346944ab6f301c7a38137dfc5ec445f03d668000..c2cda6b3df361d23000b2af1a86c89d0656981a9 100644 (file)
@@ -428,7 +428,7 @@ define Device/tplink_tl-mr6400-v1
   DEVICE_MODEL := TL-MR6400
   DEVICE_VARIANT := v1
   TPLINK_HWID := 0x64000001
-  DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial \
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-rndis kmod-usb-serial \
        kmod-usb-serial-option adb-enablemodem
   SUPPORTED_DEVICES += tl-mr6400
 endef
index ee798bf321ff8ba2f6b280c54e07758578e45515..81117f0827e47c7bc1df00157a9f124acde957e6 100644 (file)
@@ -416,8 +416,8 @@ define Device/comfast_cf-e5
   SOC := qca9531
   DEVICE_VENDOR := COMFAST
   DEVICE_MODEL := CF-E5/E7
-  DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net \
-       kmod-usb-net-qmi-wwan -swconfig -uboot-envtools
+  DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net-qmi-wwan -swconfig \
+       -uboot-envtools
   IMAGE_SIZE := 16192k
 endef
 TARGET_DEVICES += comfast_cf-e5
index 59d0376689369076004eb86d413cb77f4dc01c79..e3d1c3b3c0947d4928cb0406383e214f39476432 100644 (file)
@@ -8,7 +8,7 @@
 define Profile/olinuxino-maxi
   NAME:=Olimex OLinuXino Maxi/Mini boards
   PACKAGES += imx-bootlets uboot-mxs-mx23_olinuxino \
-         kmod-usb-net kmod-usb-net-smsc95xx kmod-gpio-mcp23s08 \
+         kmod-usb-net-smsc95xx kmod-gpio-mcp23s08 \
          kmod-leds-gpio kmod-ledtrig-heartbeat kmod-sound-core
 endef
 
index 3700788804d3fe713dda63a12b9859bd1dff9249..ce6377f29b486488c875c22097eb82997a1de0fc 100644 (file)
@@ -70,7 +70,7 @@ define Device/ti_omap3-beagle
   DEVICE_VENDOR := BeagleBoard.org
   DEVICE_MODEL := OMAP3 TI beagleboard
   # beagleboard doesn't have a network interface, support most common usb net
-  DEVICE_PACKAGES := kmod-usb-net \
+  DEVICE_PACKAGES := \
        kmod-usb-net-asix kmod-usb-net-asix-ax88179 kmod-usb-net-hso \
        kmod-usb-net-kaweth kmod-usb-net-pegasus kmod-usb-net-mcs7830 \
        kmod-usb-net-smsc95xx kmod-usb-net-dm9601-ether
index 37c0761029f10fe1fdcc9b21a50da64580ab95bf..e33886d890d41b2036d6daad7da60c8f1c4593dd 100644 (file)
@@ -8,7 +8,6 @@
 define Profile/Default
   NAME:=Default Profile
   PACKAGES:= \
-       kmod-usb-net \
        kmod-usb-net-asix kmod-usb-net-asix-ax88179 kmod-usb-net-hso \
        kmod-usb-net-kaweth kmod-usb-net-pegasus kmod-usb-net-mcs7830 \
        kmod-usb-net-smsc95xx kmod-usb-net-dm9601-ether \
index 7ebab8d757b59a8ada5a95d3a51a19b2c43d29d9..20aafc95d6f0392a7d99ca33884d847b9f57fe3d 100644 (file)
@@ -1003,7 +1003,7 @@ define Device/tplink_archer-mr200
   TPLINK_HWID := 0xd7500001
   TPLINK_HWREV := 0x4a
   IMAGES := sysupgrade.bin
-  DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net kmod-usb-net-rndis \
+  DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-net-rndis \
        kmod-usb-serial kmod-usb-serial-option adb-enablemodem
   DEVICE_MODEL := Archer MR200
   SUPPORTED_DEVICES += mr200
index 2cda2fa51b98c04deb7b9cd4ac536e86829fcefb..7d145c39927ff4d1a19c3c0029781b9c292ad9cb 100644 (file)
@@ -474,7 +474,7 @@ define Device/dlink_dwr-512-b
   DEVICE_MODEL := DWR-512
   DEVICE_VARIANT := B
   DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-spi-dev kmod-usb-serial \
-       kmod-usb-serial-option kmod-usb-net kmod-usb-net-cdc-ether comgt-ncm
+       kmod-usb-serial-option kmod-usb-net-cdc-ether comgt-ncm
   DLINK_ROM_ID := DLK6E2412001
   DLINK_FAMILY_MEMBER := 0x6E24
   DLINK_FIRMWARE_SIZE := 0x7E0000
index 8e4ba07e0b9bfa9f80601aaf8bca0440189cb81f..6ba9874abf798d19b1385e1f8d8c44dd5837c860 100644 (file)
@@ -11,7 +11,7 @@ define Device/friendlyarm_nanopi-r2s
   SOC := rk3328
   UBOOT_DEVICE_NAME := nanopi-r2s-rk3328
   IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r2s | pine64-img | gzip | append-metadata
-  DEVICE_PACKAGES := kmod-usb-net kmod-usb-net-rtl8152
+  DEVICE_PACKAGES := kmod-usb-net-rtl8152
 endef
 TARGET_DEVICES += friendlyarm_nanopi-r2s
 
index 8fa648176fb8861a7ff6db24bcdd8d21b0491b4a..69eb321c7f407398270826de731acca6d299249f 100644 (file)
@@ -173,7 +173,7 @@ TARGET_DEVICES += xunlong_orangepi-plus
 define Device/xunlong_orangepi-r1
   DEVICE_VENDOR := Xunlong
   DEVICE_MODEL := Orange Pi R1
-  DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-usb-net kmod-usb-net-rtl8152
+  DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-usb-net-rtl8152
   SOC := sun8i-h2-plus
 endef
 TARGET_DEVICES += xunlong_orangepi-r1