From 0f5ab6abaec2c57723ec1201a2d72c7e6a9aae0f Mon Sep 17 00:00:00 2001
From: Nick Hahn <nick.hahn@posteo.de>
Date: Sat, 17 Aug 2019 16:06:51 +0200
Subject: [PATCH] Enable kernel modules for usb network cards

It is now possible to use usb network cards with a x86 offloader like a
futro, removing the need for a pcie network card
---
 site.mk | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/site.mk b/site.mk
index 7c0b5c4f6..ce7ff0235 100644
--- a/site.mk
+++ b/site.mk
@@ -24,10 +24,49 @@ GLUON_SITE_PACKAGES := \
 	iwinfo \
 	ffs-set-segment \
 	ffs-watchdog
+# network support for USB devices
+USB_PACKAGES_NET := \
+	kmod-mii \
+	kmod-nls-base \
+	kmod-usb-net \
+	kmod-usb-net-asix \
+	kmod-usb-net-asix-ax88179 \
+	kmod-usb-net-cdc-eem \
+	kmod-usb-net-cdc-ether \
+	kmod-usb-net-cdc-mbim \
+	kmod-usb-net-cdc-ncm \
+	kmod-usb-net-cdc-subset \
+	kmod-usb-net-dm9601-ether \
+	kmod-usb-net-hso \
+	kmod-usb-net-huawei-cdc-ncm \
+	kmod-usb-net-ipheth \
+	kmod-usb-net-kalmia \
+	kmod-usb-net-kaweth \
+	kmod-usb-net-mcs7830 \
+	kmod-usb-net-pegasus \
+	kmod-usb-net-qmi-wwan \
+	kmod-usb-net-rndis \
+	kmod-usb-net-rtl8152 \
+	kmod-usb-net-sierrawireless \
+	kmod-usb-net-smsc95xx
+
+# additional USB network devices (ie Edimax)
+USB_PACKAGES_NET_ADD := \
+	kmod-rtl8192cu \
+	kmod-rtl8187 \
+	kmod-ath9k-htc \
+	kmod-ath9k-common \
+	kmod-ath \
+	kmod-rt73-usb \
+	kmod-carl9170 \
+	kmod-brcmfmac
+
 
 # add addition network drivers and usb support only to targes where disk space does not matter.
 ifeq ($(GLUON_TARGET),x86-generic)
 GLUON_SITE_PACKAGES += \
+	$(USB_PACKAGES_NET) \
+	$(USB_PACKAGES_NET_ADD) \
         kmod-usb-core \
         kmod-usb-ohci-pci \
         kmod-usb2 \
-- 
GitLab