summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/Makefile
diff options
context:
space:
mode:
authorJonathan Toppins2017-10-06 21:48:30 +0200
committerDavid S. Miller2017-10-07 04:00:26 +0200
commit0d7b70e83642f01c451a52faa3908e7b054ff7c6 (patch)
tree1dc67b6243e015681e0d1e4e4657f5e001275c75 /drivers/net/ethernet/broadcom/bnxt/Makefile
parentMerge branch 'tcp-rbtree-retransmit-queue' (diff)
downloadkernel-qcow2-linux-0d7b70e83642f01c451a52faa3908e7b054ff7c6.tar.gz
kernel-qcow2-linux-0d7b70e83642f01c451a52faa3908e7b054ff7c6.tar.xz
kernel-qcow2-linux-0d7b70e83642f01c451a52faa3908e7b054ff7c6.zip
bnxt_en: don't consider building bnxt_tc.o if option not enabled
Instead of zeroing out bnxt_tc.c with a #ifdef foo, instead don't compile the file when the option is not enabled. Now make and the preprocessor do not have to waste time compiling a no-op. Signed-off-by: Jonathan Toppins <jtoppins@redhat.com> Acked-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/Makefile')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/Makefile b/drivers/net/ethernet/broadcom/bnxt/Makefile
index 4f0cb8e1ffc0..457201f409a7 100644
--- a/drivers/net/ethernet/broadcom/bnxt/Makefile
+++ b/drivers/net/ethernet/broadcom/bnxt/Makefile
@@ -1,3 +1,4 @@
obj-$(CONFIG_BNXT) += bnxt_en.o
-bnxt_en-y := bnxt.o bnxt_sriov.o bnxt_ethtool.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_vfr.o bnxt_tc.o
+bnxt_en-y := bnxt.o bnxt_sriov.o bnxt_ethtool.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_vfr.o
+bnxt_en-$(CONFIG_BNXT_FLOWER_OFFLOAD) += bnxt_tc.o