[xenial v2 4/7] UBUNTU: SAUCE: bnxt_en_bpo: Move config settings to Kconfig
Juerg Haefliger
juerg.haefliger at canonical.com
Thu Aug 17 11:32:29 UTC 2017
BugLink: http://bugs.launchpad.net/bugs/1711056
Move the CONFIG_BNXT settings from the driver's Makefile to a dedicated
Kconfig file.
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
ubuntu/bnxt/Kconfig | 29 +++++++++++++++++++++++++++++
ubuntu/bnxt/Makefile | 4 ++--
2 files changed, 31 insertions(+), 2 deletions(-)
create mode 100644 ubuntu/bnxt/Kconfig
diff --git a/ubuntu/bnxt/Kconfig b/ubuntu/bnxt/Kconfig
new file mode 100644
index 000000000000..7dd42953e9f8
--- /dev/null
+++ b/ubuntu/bnxt/Kconfig
@@ -0,0 +1,29 @@
+config BNXT
+ tristate "Broadcom NetXtreme-C/E support"
+ depends on PCI
+ depends on VXLAN || VXLAN=n
+ select FW_LOADER
+ select LIBCRC32C
+ ---help---
+ This driver supports Broadcom NetXtreme-C/E 10/25/40/50 gigabit
+ Ethernet cards. To compile this driver as a module, choose M here:
+ the module will be called bnxt_en. This is recommended.
+
+config BNXT_SRIOV
+ bool "Broadcom NetXtreme-C/E SR-IOV support"
+ depends on BNXT && PCI_IOV
+ default y
+ ---help---
+ This configuration parameter enables Single Root Input Output
+ Virtualization support in the NetXtreme-C/E products. This
+ allows for virtual function acceleration in virtual environments.
+
+config BNXT_DCB
+ bool "Data Center Bridging (DCB) Support"
+ default n
+ depends on BNXT && DCB
+ ---help---
+ Say Y here if you want to use Data Center Bridging (DCB) in the
+ driver.
+
+ If unsure, say N.
diff --git a/ubuntu/bnxt/Makefile b/ubuntu/bnxt/Makefile
index 59cd730b2ee2..5a0883cb897d 100644
--- a/ubuntu/bnxt/Makefile
+++ b/ubuntu/bnxt/Makefile
@@ -403,9 +403,9 @@ ifneq ($(shell ls $(LINUXSRC)/include/$(UAPI)/linux/net_tstamp.h > /dev/null 2>&
endif
endif
-EXTRA_CFLAGS += $(DISTRO_CFLAG) -DCHIMP_FW -DCONFIG_BNXT_SRIOV -DCONFIG_BNXT_DCB -DCONFIG_BNXT_FLASHDEV -DHSI_DBG_DISABLE -DCONFIG_BNXT_RE
+EXTRA_CFLAGS += $(DISTRO_CFLAG) -DCHIMP_FW -DCONFIG_BNXT_FLASHDEV -DHSI_DBG_DISABLE -DCONFIG_BNXT_RE
cflags-y += $(EXTRA_CFLAGS)
-obj-m += bnxt_en.o
+obj-$(CONFIG_BNXT) += bnxt_en.o
bnxt_en-y := bnxt.o bnxt_ethtool.o bnxt_sriov.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_ptp.o #decode_hsi.o
--
2.11.0
More information about the kernel-team
mailing list