X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fi40e%2Fmeson.build;h=bb0c542a30bc8f04bbb0e3eec7cb80fd0a7d5222;hb=f593944fc988dfccebed62205fd0b88c60ed7d77;hp=dcbca39bf707fb8df30f9182f7d0f2754ce8abd0;hpb=02ad704708c878f4a4670b475e15734f8f1af162;p=dpdk.git diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index dcbca39bf7..bb0c542a30 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -1,13 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -version = 2 - cflags += ['-DPF_DRIVER', '-DVF_DRIVER', '-DINTEGRATED_VF', - '-DX722_A0_SUPPORT', - '-DALLOW_EXPERIMENTAL_API'] + '-DX722_A0_SUPPORT'] subdir('base') objs = [base_objs] @@ -34,7 +31,7 @@ if arch_subdir == 'x86' # compile AVX2 version if either: # a. we have AVX supported in minimum instruction set baseline # b. it's not minimum instruction set, but supported by compiler - if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2') + if cc.get_define('__AVX2__', args: machine_args) != '' cflags += ['-DCC_AVX2_SUPPORT'] sources += files('i40e_rxtx_vec_avx2.c') elif cc.has_argument('-mavx2') @@ -47,6 +44,12 @@ if arch_subdir == 'x86' c_args: [cflags, '-mavx2']) objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c') endif +elif arch_subdir == 'ppc' + dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1) + sources += files('i40e_rxtx_vec_altivec.c') +elif arch_subdir == 'arm' + dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1) + sources += files('i40e_rxtx_vec_neon.c') endif -install_headers('rte_pmd_i40e.h') +headers = files('rte_pmd_i40e.h')