f-stack/dpdk/drivers/net/thunderx/meson.build

28 lines
574 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
2022-09-06 04:00:10 +00:00
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false
reason = 'only supported on 64-bit Linux'
subdir_done()
endif
2019-06-25 11:12:58 +00:00
subdir('base')
objs = [base_objs]
2022-09-06 04:00:10 +00:00
sources = files(
'nicvf_ethdev.c',
'nicvf_rxtx.c',
'nicvf_svf.c',
2019-06-25 11:12:58 +00:00
)
if cc.has_argument('-fno-prefetch-loop-arrays')
2022-09-06 04:00:10 +00:00
cflags += '-fno-prefetch-loop-arrays'
2019-06-25 11:12:58 +00:00
endif
if cc.has_argument('-Wno-maybe-uninitialized')
2022-09-06 04:00:10 +00:00
cflags += '-Wno-maybe-uninitialized'
2019-06-25 11:12:58 +00:00
endif
includes += include_directories('base')