1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3 # Copyright(c) 2020 Broadcom
7 reason = 'not supported on Windows'
11 headers = files('rte_pmd_bnxt.h')
13 '-DSUPPORT_CFA_HW_ALL=1',
16 foreach option:cflags_options
17 if cc.has_argument(option)
22 headers = files('rte_pmd_bnxt.h')
44 #Add the subdirectories that need to be compiled
49 if arch_subdir == 'x86'
50 sources += files('bnxt_rxtx_vec_sse.c')
51 # compile AVX2 version if either:
52 # a. we have AVX supported in minimum instruction set baseline
53 # b. it's not minimum instruction set, but supported by compiler
54 if cc.get_define('__AVX2__', args: machine_args) != ''
55 cflags += ['-DCC_AVX2_SUPPORT']
56 sources += files('bnxt_rxtx_vec_avx2.c')
57 elif cc.has_argument('-mavx2')
58 cflags += ['-DCC_AVX2_SUPPORT']
59 bnxt_avx2_lib = static_library('bnxt_avx2_lib',
60 'bnxt_rxtx_vec_avx2.c',
61 dependencies: [static_rte_ethdev,
63 static_rte_kvargs, static_rte_hash],
64 include_directories: includes,
65 c_args: [cflags, '-mavx2'])
66 objs += bnxt_avx2_lib.extract_objects('bnxt_rxtx_vec_avx2.c')
68 elif arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64')
69 sources += files('bnxt_rxtx_vec_neon.c')