generic: package Broadcom BNX2 driver
authorGeorge Amanakis <g_amanakis@yahoo.com>
Mon, 2 Jan 2017 03:38:46 +0000 (22:38 -0500)
committerJo-Philipp Wich <jo@mein.io>
Mon, 2 Jan 2017 15:47:59 +0000 (16:47 +0100)
bnx2 driver support for the x86 architecture. Includes module and
firmware for Broadcom BCM5706/5708/5709/5716 ethernet adapters.

Signed-off-by: George Amanakis <g_amanakis@yahoo.com>
package/firmware/linux-firmware/broadcom.mk
package/kernel/linux/modules/netdevices.mk

index c2b6916b23095efb818ad6847f52053717ed3723..c0ad19cd69093865bd12429b56420c3bd4d1ca74 100644 (file)
@@ -64,3 +64,12 @@ define Package/brcmsmac-firmware/install
                $(1)/lib/firmware/brcm/
 endef
 $(eval $(call BuildPackage,brcmsmac-firmware))
+
+Package/bnx2-firmware = $(call Package/firmware-default,Broadcom BCM5706/5708/5709/5716 firmware)
+define Package/bnx2-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/bnx2
+       $(INSTALL_DATA) \
+               $(PKG_BUILD_DIR)/bnx2/* \
+               $(1)/lib/firmware/bnx2/
+endef
+$(eval $(call BuildPackage,bnx2-firmware))
index 9145df37b833f22f4b265ae85a5b7843ac444aee..8be64530906d5c04523bb41e9adc790fe39db9c6 100644 (file)
@@ -902,3 +902,19 @@ define KernelPackage/ethoc/description
 endef
 
 $(eval $(call KernelPackage,ethoc))
+
+
+define KernelPackage/bnx2
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=BCM5706/5708/5709/5716 ethernet adapter driver
+  DEPENDS:=@PCI_SUPPORT +bnx2-firmware
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/bnx2.ko
+  KCONFIG:=CONFIG_BNX2
+  AUTOLOAD:=$(call AutoProbe,bnx2)
+endef
+
+define KernelPackage/bnx2/description
+  Kernel module for the BCM5706/5708/5709/5716 ethernet adapter
+endef
+
+$(eval $(call KernelPackage,bnx2))