1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2022 Intel Corporation 3 4if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 5 subdir_done() 6endif 7 8includes += include_directories('../iavf') 9 10deps += ['mbuf'] 11 12sources = files( 13 'idpf_common_device.c', 14 'idpf_common_rxtx.c', 15 'idpf_common_virtchnl.c', 16) 17 18if arch_subdir == 'x86' 19 if cc_has_avx512 20 cflags += ['-DCC_AVX512_SUPPORT'] 21 avx512_args = cflags + cc_avx512_flags 22 if cc.has_argument('-march=skylake-avx512') 23 avx512_args += '-march=skylake-avx512' 24 endif 25 idpf_common_avx512_lib = static_library('idpf_common_avx512_lib', 26 'idpf_common_rxtx_avx512.c', 27 dependencies: [static_rte_mbuf,], 28 include_directories: includes, 29 c_args: avx512_args) 30 objs += idpf_common_avx512_lib.extract_objects('idpf_common_rxtx_avx512.c') 31 endif 32endif 33 34subdir('base') 35