BNX2X: Kconfig/Kbuild support
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 3 Feb 2015 22:13:41 +0000 (17:13 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Mar 2015 16:59:07 +0000 (11:59 -0500)
Let's try to build right away and fix the errors, one at a time.

kern/drivers/Kconfig
kern/drivers/net/Kbuild
kern/drivers/net/Kconfig [new file with mode: 0644]

index fb38aa7..b72bbb7 100644 (file)
@@ -1,6 +1,6 @@
 menu "Drivers"
 
-#source "kern/drivers/net/Kconfig"
+source "kern/drivers/net/Kconfig"
 source "kern/drivers/dev/Kconfig"
 
 endmenu
index 122753f..6d0c494 100644 (file)
@@ -1,5 +1,6 @@
 # need at least one obj file to build for Kbuild
 obj-y                                                  += dummy.o
+obj-$(CONFIG_BNX2X)                            += bnx2x/
 obj-y                                                  += ether8139.o
 obj-y                                                  += ether8169.o
 obj-y                                                  += ether82563.o
diff --git a/kern/drivers/net/Kconfig b/kern/drivers/net/Kconfig
new file mode 100644 (file)
index 0000000..25c413b
--- /dev/null
@@ -0,0 +1,12 @@
+config BNX2X
+       bool "Broadcom BNX2X NIC driver"
+       default n
+       help
+               Broadcom Everest 10 Gb network driver (NetXtremeII).
+
+config BNX2X_SRIOV
+       bool "Broadcom SR-IOV"
+       depends on BNX2X
+       default n
+       help
+               BNX2X support for SR-IOV (I/O virtualization).