net/hinic: replace spinlock with mutex
[dpdk.git] / drivers / net / hinic / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Huawei Technologies Co., Ltd
3
4 sources = [
5         'hinic_pmd_api_cmd.c',
6         'hinic_pmd_cfg.c',
7         'hinic_pmd_cmdq.c',
8         'hinic_pmd_eqs.c',
9         'hinic_pmd_hwdev.c',
10         'hinic_pmd_hwif.c',
11         'hinic_pmd_mgmt.c',
12         'hinic_pmd_niccfg.c',
13         'hinic_pmd_nicio.c',
14         'hinic_pmd_wq.c',
15 ]
16
17 extra_flags = []
18 # The driver runs only on arch64 machine, remove 32bit warnings
19 if not dpdk_conf.get('RTE_ARCH_64')
20         extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
21 endif
22
23 foreach flag: extra_flags
24         if cc.has_argument(flag)
25                 cflags += flag
26         endif
27 endforeach
28
29 deps += ['hash']
30
31 c_args = cflags
32
33 base_lib = static_library('hinic_base', sources,
34         dependencies: [static_rte_eal, static_rte_ethdev, static_rte_bus_pci, static_rte_hash],
35         c_args: c_args)
36 base_objs = base_lib.extract_all_objects()