From be50c08e571b85fddc286cf4a0a39c7b7f7e0d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Fri, 8 Sep 2023 18:33:16 +0200 Subject: [PATCH] Add extra sauce to x86 offloader/kvm images --- site.mk | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 119 insertions(+), 2 deletions(-) diff --git a/site.mk b/site.mk index abe5549..a2bce7a 100644 --- a/site.mk +++ b/site.mk @@ -178,10 +178,127 @@ endif ifeq ($(GLUON_TARGET),ath79-nand) GLUON_SITE_PACKAGES += $(INCLUDE_TLS) $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE) - endif ifeq ($(GLUON_TARGET),bcm27xx-bcm2708) GLUON_SITE_PACKAGES += $(INCLUDE_TLS) $(INCLUDE_USB) $(INCLUDE_USB_HID) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE) - endif + +# some extra sauce to make offloader/kvm images extra spicy + +USB_PACKAGES_BASIC := \ + kmod-usb-core \ + kmod-usb2 + +USB_PACKAGES_STORAGE := \ + block-mount \ + blkid \ + kmod-fs-ext4 \ + kmod-fs-vfat \ + kmod-usb-storage \ + kmod-usb-storage-extras \ + kmod-nls-cp1250 \ + kmod-nls-cp1251 \ + kmod-nls-cp437 \ + kmod-nls-cp775 \ + kmod-nls-cp850 \ + kmod-nls-cp852 \ + kmod-nls-cp866 \ + kmod-nls-iso8859-1 \ + kmod-nls-iso8859-13 \ + kmod-nls-iso8859-15 \ + kmod-nls-iso8859-2 \ + kmod-nls-koi8r \ + kmod-nls-utf8 \ + swap-utils + +# 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 + +USB_PACKAGES_NET_ADD := \ + kmod-rtl8192cu \ + kmod-rtl8187 \ + kmod-ath9k-htc \ + kmod-ath9k-common \ + kmod-ath \ + kmod-rt73-usb \ + kmod-carl9170 \ + kmod-brcmfmac + +PCI_PACKAGES_NET := \ + kmod-3c59x \ + kmod-e100 \ + kmod-e1000 \ + kmod-e1000e \ + kmod-forcedeth \ + kmod-natsemi \ + kmod-ne2k-pci \ + kmod-pcnet32 \ + kmod-r8169 \ + kmod-sis900 \ + kmod-sky2 \ + kmod-tg3 \ + kmod-tulip \ + kmod-via-rhine + +TOOLS_PACKAGES := \ + iperf \ + socat \ + tcpdump \ + usbutils \ + vnstat + +# x86-generic +ifeq ($(GLUON_TARGET),x86-generic) +# support the usb stack on x86 devices +# and add a few common USB and PCI NICs +GLUON_SITE_PACKAGES += \ + kmod-usb-hid \ + kmod-hid-generic \ + kmod-button-hotplug \ + $(USB_PACKAGES_BASIC) \ + $(USB_PACKAGES_STORAGE) \ + $(USB_PACKAGES_NET) \ + $(PCI_PACKAGES_NET) \ + $(TOOLS_PACKAGES) \ + $(USB_PACKAGES_NET_ADD) +endif + +# x86-64 +ifeq ($(GLUON_TARGET),x86-64) +# support the usb stack on x86-64 devices +# and add a few common USB and PCI NICs +GLUON_SITE_PACKAGES += \ + kmod-usb-hid \ + kmod-hid-generic \ + kmod-button-hotplug \ + $(USB_PACKAGES_BASIC) \ + $(USB_PACKAGES_STORAGE) \ + $(USB_PACKAGES_NET) \ + $(PCI_PACKAGES_NET) \ + $(TOOLS_PACKAGES) \ + $(USB_PACKAGES_NET_ADD) +endif \ No newline at end of file