net/bnx2x: add to meson build
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 8 Jun 2018 21:20:36 +0000 (22:20 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bnx2x/meson.build [new file with mode: 0644]
drivers/net/meson.build

diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build
new file mode 100644 (file)
index 0000000..e3c6888
--- /dev/null
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+dep = cc.find_library('z', required: false)
+build = dep.found()
+ext_deps += dep
+cflags += '-DZLIB_CONST'
+sources = files('bnx2x.c',
+       'bnx2x_ethdev.c',
+       'bnx2x_rxtx.c',
+       'bnx2x_stats.c',
+       'bnx2x_vfpf.c',
+       'ecore_sp.c',
+       'elink.c')
index f13f637..3447426 100644 (file)
@@ -4,7 +4,9 @@
 drivers = ['af_packet',
        'ark',
        'avp',
-       'axgbe', 'bonding', 'dpaa', 'dpaa2',
+       'axgbe', 'bonding',
+       'bnx2x',
+       'dpaa', 'dpaa2',
        'e1000', 'enic', 'fm10k', 'i40e',
        'ifc',
        'ixgbe',