From 4d61166da4ea39dc1c6fde8e7c5acf546f787e44 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 8 Jun 2018 22:20:36 +0100 Subject: [PATCH] net/bnx2x: add to meson build Signed-off-by: Bruce Richardson Reviewed-by: Ferruh Yigit --- drivers/net/bnx2x/meson.build | 14 ++++++++++++++ drivers/net/meson.build | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 drivers/net/bnx2x/meson.build diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build new file mode 100644 index 0000000000..e3c6888693 --- /dev/null +++ b/drivers/net/bnx2x/meson.build @@ -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') diff --git a/drivers/net/meson.build b/drivers/net/meson.build index f13f637ea1..3447426100 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -4,7 +4,9 @@ drivers = ['af_packet', 'ark', 'avp', - 'axgbe', 'bonding', 'dpaa', 'dpaa2', + 'axgbe', 'bonding', + 'bnx2x', + 'dpaa', 'dpaa2', 'e1000', 'enic', 'fm10k', 'i40e', 'ifc', 'ixgbe', -- 2.20.1