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]
This commit is contained in:
Petko Bordjukov 2019-06-09 17:27:26 +03:00 committed by Christian Lamparter
parent 1440175f82
commit 1e2e5c66ed
6 changed files with 32 additions and 1 deletions

View File

@ -100,3 +100,12 @@ define Package/bnx2-firmware/install
$(1)/lib/firmware/bnx2/ $(1)/lib/firmware/bnx2/
endef endef
$(eval $(call BuildPackage,bnx2-firmware)) $(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))

View File

@ -991,3 +991,21 @@ define KernelPackage/bnx2/description
endef endef
$(eval $(call KernelPackage,bnx2)) $(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))

View File

@ -589,6 +589,7 @@ CONFIG_BLOCK=y
# CONFIG_BNA is not set # CONFIG_BNA is not set
# CONFIG_BNX2 is not set # CONFIG_BNX2 is not set
# CONFIG_BNX2X is not set # CONFIG_BNX2X is not set
# CONFIG_BNX2X_SRIOV is not set
# CONFIG_BNXT is not set # CONFIG_BNXT is not set
# CONFIG_BONDING is not set # CONFIG_BONDING is not set
# CONFIG_BOOKE_WDT is not set # CONFIG_BOOKE_WDT is not set

View File

@ -611,6 +611,7 @@ CONFIG_BLOCK=y
# CONFIG_BNA is not set # CONFIG_BNA is not set
# CONFIG_BNX2 is not set # CONFIG_BNX2 is not set
# CONFIG_BNX2X is not set # CONFIG_BNX2X is not set
# CONFIG_BNX2X_SRIOV is not set
# CONFIG_BNXT is not set # CONFIG_BNXT is not set
# CONFIG_BONDING is not set # CONFIG_BONDING is not set
# CONFIG_BOOKE_WDT is not set # CONFIG_BOOKE_WDT is not set

View File

@ -363,6 +363,7 @@ CONFIG_PCI_GOANY=y
# CONFIG_PCI_GOBIOS is not set # CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set # CONFIG_PCI_GODIRECT is not set
# CONFIG_PCI_GOMMCONFIG is not set # CONFIG_PCI_GOMMCONFIG is not set
CONFIG_PCI_IOV=y
CONFIG_PCI_LABEL=y CONFIG_PCI_LABEL=y
CONFIG_PCI_LOCKLESS_CONFIG=y CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_MSI=y CONFIG_PCI_MSI=y

View File

@ -354,6 +354,7 @@ CONFIG_PCI_GOANY=y
# CONFIG_PCI_GOBIOS is not set # CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set # CONFIG_PCI_GODIRECT is not set
# CONFIG_PCI_GOMMCONFIG is not set # CONFIG_PCI_GOMMCONFIG is not set
CONFIG_PCI_IOV=y
CONFIG_PCI_LABEL=y CONFIG_PCI_LABEL=y
CONFIG_PCI_LOCKLESS_CONFIG=y CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_MSI=y CONFIG_PCI_MSI=y