numam-dpdk/drivers/net/pfe/meson.build
Thomas Monjalon 4f299b7169 build: replace meson OS detection with variable
Some places were calling the meson function host_machine.system()
instead of the variables is_windows and is_linux defined
in config/meson.build.

At the same time, the missing "Linux restriction" reason is added to
pfe and octeontx2 crypto PMDs.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2020-06-30 15:29:59 +02:00

20 lines
363 B
Meson

# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019 NXP
if not is_linux
build = false
reason = 'only supported on Linux'
endif
deps += ['common_dpaax']
sources = files('pfe_ethdev.c',
'pfe_hal.c',
'pfe_hif_lib.c',
'pfe_hif.c')
if cc.has_argument('-Wno-pointer-arith')
cflags += '-Wno-pointer-arith'
endif
includes += include_directories('base')