Any flags added to the project args are automatically added to all builds, both native and cross-compiled. This is not what we want for the -march flag as a valid -march for the cross-compile is not valid for pmdinfogen which is a native-build tool. Instead we store the march flag as a variable, and add it to the default cflags for all libs, drivers, examples, etc. This will allow pmdinfogen to compile successfully in a cross-compilation environment. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
33 lines
608 B
Meson
33 lines
608 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS']
|
|
|
|
subdir('base')
|
|
objs = [base_objs]
|
|
|
|
allow_experimental_apis = true
|
|
sources = files(
|
|
'ixgbe_82599_bypass.c',
|
|
'ixgbe_bypass.c',
|
|
'ixgbe_ethdev.c',
|
|
'ixgbe_fdir.c',
|
|
'ixgbe_flow.c',
|
|
'ixgbe_ipsec.c',
|
|
'ixgbe_pf.c',
|
|
'ixgbe_rxtx.c',
|
|
'ixgbe_tm.c',
|
|
'rte_pmd_ixgbe.c'
|
|
)
|
|
|
|
deps += ['hash', 'security']
|
|
|
|
if arch_subdir == 'x86'
|
|
dpdk_conf.set('RTE_IXGBE_INC_VECTOR', 1)
|
|
sources += files('ixgbe_rxtx_vec_sse.c')
|
|
endif
|
|
|
|
includes += include_directories('base')
|
|
|
|
install_headers('rte_pmd_ixgbe.h')
|