1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018-2019 Hisilicon Limited 3 4if not is_linux 5 build = false 6 reason = 'only supported on Linux' 7 subdir_done() 8endif 9 10if arch_subdir != 'x86' and arch_subdir != 'arm' or not dpdk_conf.get('RTE_ARCH_64') 11 build = false 12 reason = 'only supported on x86_64 and aarch64' 13 subdir_done() 14endif 15 16sources = files('hns3_cmd.c', 17 'hns3_dcb.c', 18 'hns3_intr.c', 19 'hns3_ethdev.c', 20 'hns3_ethdev_vf.c', 21 'hns3_fdir.c', 22 'hns3_flow.c', 23 'hns3_mbx.c', 24 'hns3_regs.c', 25 'hns3_rss.c', 26 'hns3_rxtx.c', 27 'hns3_stats.c', 28 'hns3_mp.c', 29 'hns3_tm.c') 30 31deps += ['hash'] 32 33if arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64') 34 sources += files('hns3_rxtx_vec.c') 35 if cc.get_define('__ARM_FEATURE_SVE', args: machine_args) != '' 36 sources += files('hns3_rxtx_vec_sve.c') 37 endif 38endif 39