From 3a221aa68f282fc16cf431e3a89dff239565db36 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 8 Jun 2018 22:20:40 +0100 Subject: [PATCH] net/failsafe: add to meson build Signed-off-by: Bruce Richardson Reviewed-by: Ferruh Yigit --- drivers/net/failsafe/meson.build | 23 +++++++++++++++++++++++ drivers/net/meson.build | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 drivers/net/failsafe/meson.build diff --git a/drivers/net/failsafe/meson.build b/drivers/net/failsafe/meson.build new file mode 100644 index 0000000000..a249ff4af3 --- /dev/null +++ b/drivers/net/failsafe/meson.build @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +cflags += '-std=gnu99' +cflags += '-D_DEFAULT_SOURCE' +cflags += '-D_XOPEN_SOURCE=700' +cflags += '-pedantic' +if host_machine.system() == 'linux' + cflags += '-DLINUX' +else + cflags += '-DBSD' +endif + +allow_experimental_apis = true + +sources = files('failsafe_args.c', + 'failsafe.c', + 'failsafe_eal.c', + 'failsafe_ether.c', + 'failsafe_flow.c', + 'failsafe_intr.c', + 'failsafe_ops.c', + 'failsafe_rxtx.c') diff --git a/drivers/net/meson.build b/drivers/net/meson.build index 11a5303d52..035e407693 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -11,7 +11,9 @@ drivers = ['af_packet', 'dpaa', 'dpaa2', 'e1000', 'ena', - 'enic', 'fm10k', 'i40e', + 'enic', + 'failsafe', + 'fm10k', 'i40e', 'ifc', 'ixgbe', 'mvpp2', 'null', 'octeontx', 'pcap', 'ring', -- 2.20.1