25245d5dc9
In order to use the hash list defined in net in other drivers, the hash list is moved to common utilities. In addition, the log definition was moved from the common utilities to a dedicated new log file in common in order to prevent a conflict. Signed-off-by: Shiri Kuzin <shirik@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
41 lines
967 B
Meson
41 lines
967 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright 2019 Mellanox Technologies, Ltd
|
|
|
|
if not (is_linux or (is_windows and is_ms_linker))
|
|
build = false
|
|
reason = 'only supported on Linux and Windows build with clang'
|
|
subdir_done()
|
|
endif
|
|
|
|
deps += ['hash', 'pci', 'bus_pci', 'net', 'eal', 'kvargs']
|
|
sources += files(
|
|
'mlx5_devx_cmds.c',
|
|
'mlx5_common.c',
|
|
'mlx5_common_mp.c',
|
|
'mlx5_common_mr.c',
|
|
'mlx5_malloc.c',
|
|
'mlx5_common_pci.c',
|
|
'mlx5_common_devx.c',
|
|
'mlx5_common_utils.c',
|
|
)
|
|
|
|
cflags_options = [
|
|
'-std=c11',
|
|
'-Wno-strict-prototypes',
|
|
'-D_BSD_SOURCE',
|
|
'-D_DEFAULT_SOURCE',
|
|
'-D_XOPEN_SOURCE=600',
|
|
]
|
|
foreach option:cflags_options
|
|
if cc.has_argument(option)
|
|
cflags += option
|
|
endif
|
|
endforeach
|
|
if get_option('buildtype').contains('debug')
|
|
cflags += [ '-pedantic', '-DPEDANTIC' ]
|
|
else
|
|
cflags += [ '-UPEDANTIC' ]
|
|
endif
|
|
|
|
subdir(exec_env)
|