1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Add smsc75xx driver support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-16 20:03:43 +01:00
parent 9d659000ba
commit 304dbdde70
2 changed files with 32 additions and 0 deletions

View file

@ -172,6 +172,12 @@ if ! patch -Rf -N -p1 -s --dry-run < ../../patches/nanqinlang.patch; then
fi
echo "Done"
echo "Checking if smsc75xx patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/smsc75xx.patch; then
patch -N -p1 -s < ../../patches/smsc75xx.patch
fi
echo "Done"
#echo "Patch protobuf wrong hash"
#patch -N -R -p1 -s < ../../patches/protobuf_hash.patch

26
patches/smsc75xx.patch Normal file
View file

@ -0,0 +1,26 @@
Index: package/kernel/linux/modules/usb.mk
===================================================================
--- package/kernel/linux/modules/usb.mk (revisione 42462)
+++ package/kernel/linux/modules/usb.mk (copia locale)
@@ -1091,8 +1091,21 @@
endef
$(eval $(call KernelPackage,usb-net-smsc95xx))
+
+define KernelPackage/usb-net-smsc75xx
+ TITLE:=SMSC LAN75XX based USB 2.0 Gigabit ethernet devices
+ KCONFIG:=CONFIG_USB_NET_SMSC75XX
+ FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc75xx.ko
+ AUTOLOAD:=$(call AutoProbe,smsc75xx)
+ $(call AddDepends/usb-net, +kmod-lib-crc16)
+endef
+define KernelPackage/usb-net-smsc75xx/description
+ Kernel module for SMSC LAN75XX based devices
+endef
+$(eval $(call KernelPackage,usb-net-smsc75xx))
+
define KernelPackage/usb-net-dm9601-ether
TITLE:=Support for DM9601 ethernet connections
KCONFIG:=CONFIG_USB_NET_DM9601