net/nfp: disable in FreeBSD build with meson
authorAgalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan@intel.com>
Thu, 4 Oct 2018 14:09:59 +0000 (15:09 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 27 Oct 2018 15:58:08 +0000 (17:58 +0200)
Disabled nfp build in FreeBSD because it is not supported
Added changes to enable NFP build if it is Linux OS and
disable in FreeBSD.

Fixes: d9b9ca7e0595 ("net/nfp: add to meson build")
Cc: stable@dpdk.org
Signed-off-by: Agalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan@intel.com>
drivers/net/nfp/meson.build

index 3ba37e2..a8f29f9 100644 (file)
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
+if host_machine.system() != 'linux'
+        build = false
+endif
 sources = files('nfpcore/nfp_cpp_pcie_ops.c',
        'nfpcore/nfp_nsp.c',
        'nfpcore/nfp_cppcore.c',