aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPetko Bordjukov <bordjukov@gmail.com>2019-06-09 17:27:26 +0300
committerChristian Lamparter <chunkeey@gmail.com>2019-06-20 20:02:29 +0200
commit1e2e5c66edff36e9fca2da66c85443251ea91ee2 (patch)
tree081a879aef1631e2677fb75c5031dc994f6f9414 /package
parent1440175f82f36c64de8a8593f68749741762580a (diff)
downloadupstream-1e2e5c66edff36e9fca2da66c85443251ea91ee2.tar.gz
upstream-1e2e5c66edff36e9fca2da66c85443251ea91ee2.tar.bz2
upstream-1e2e5c66edff36e9fca2da66c85443251ea91ee2.zip
kernel: package Broadcom BNX2X driver
bnx2x driver support for the x86 architecture. Includes module and firmware for Broadcom QLogic 5771x/578xx 10/20-Gigabit ethernet adapters. Signed-off-by: Petko Bordjukov <bordjukov@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [added +kmod-lib-zlib-inflate as well]
Diffstat (limited to 'package')
-rw-r--r--package/firmware/linux-firmware/broadcom.mk9
-rw-r--r--package/kernel/linux/modules/netdevices.mk20
2 files changed, 28 insertions, 1 deletions
diff --git a/package/firmware/linux-firmware/broadcom.mk b/package/firmware/linux-firmware/broadcom.mk
index eeed8ec9ce..ee83b69c4b 100644
--- a/package/firmware/linux-firmware/broadcom.mk
+++ b/package/firmware/linux-firmware/broadcom.mk
@@ -100,3 +100,12 @@ define Package/bnx2-firmware/install
$(1)/lib/firmware/bnx2/
endef
$(eval $(call BuildPackage,bnx2-firmware))
+
+Package/bnx2x-firmware = $(call Package/firmware-default,=QLogic 5771x/578xx firmware)
+define Package/bnx2x-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/bnx2x
+ $(INSTALL_DATA) \
+ $(PKG_BUILD_DIR)/bnx2x/* \
+ $(1)/lib/firmware/bnx2x/
+endef
+$(eval $(call BuildPackage,bnx2x-firmware))
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index e77ddfd5f0..3f36332ba2 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -930,7 +930,7 @@ $(eval $(call KernelPackage,of-mdio))
define KernelPackage/vmxnet3
SUBMENU:=$(NETWORK_DEVICES_MENU)
- TITLE:=VMware VMXNET3 ethernet driver
+ TITLE:=VMware VMXNET3 ethernet driver
DEPENDS:=@PCI_SUPPORT
KCONFIG:=CONFIG_VMXNET3
FILES:=$(LINUX_DIR)/drivers/net/vmxnet3/vmxnet3.ko
@@ -991,3 +991,21 @@ define KernelPackage/bnx2/description
endef
$(eval $(call KernelPackage,bnx2))
+
+
+define KernelPackage/bnx2x
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=QLogic 5771x/578xx 10/20-Gigabit ethernet adapter driver
+ DEPENDS:=@PCI_SUPPORT +bnx2x-firmware +kmod-lib-crc32c +kmod-mdio +kmod-ptp +kmod-lib-zlib-inflate
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko
+ KCONFIG:= \
+ CONFIG_BNX2X \
+ CONFIG_BNX2X_SRIOV=y
+ AUTOLOAD:=$(call AutoProbe,bnx2x)
+endef
+
+define KernelPackage/bnx2x/description
+ QLogic BCM57710/57711/57711E/57712/57712_MF/57800/57800_MF/57810/57810_MF/57840/57840_MF Driver
+endef
+
+$(eval $(call KernelPackage,bnx2x))