From: Ophir Munk Date: Mon, 28 Dec 2020 09:54:25 +0000 (+0200) Subject: common/mlx5: add init for external lib on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e11fe027f6597998a54a1fe3f1e7462db5b283f5;p=dpdk.git common/mlx5: add init for external lib on Windows Add function mlx5_glue_constructor() as an initialization routine for run-time dependency on external lib. Currently the routine has an empty body. It is used for compatibility with Linux. Signed-off-by: Ophir Munk Acked-by: Matan Azrad --- diff --git a/drivers/common/mlx5/windows/meson.build b/drivers/common/mlx5/windows/meson.build index 1a40f95c6f..d600d92aa1 100644 --- a/drivers/common/mlx5/windows/meson.build +++ b/drivers/common/mlx5/windows/meson.build @@ -5,6 +5,7 @@ includes += include_directories('.') sources += files( 'mlx5_glue.c', + 'mlx5_common_os.c', ) res_lib = run_command(python3, '-c', 'import os; print(os.environ["DEVX_LIB_PATH"])') diff --git a/drivers/common/mlx5/windows/mlx5_common_os.c b/drivers/common/mlx5/windows/mlx5_common_os.c new file mode 100644 index 0000000000..754260f51a --- /dev/null +++ b/drivers/common/mlx5/windows/mlx5_common_os.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2020 Mellanox Technologies, Ltd + */ + +#include +#include +#include + +#include +#include +#include + +#include "mlx5_devx_cmds.h" +#include "mlx5_common_utils.h" +#include "mlx5_common.h" + +/** + * Initialization routine for run-time dependency on external lib + */ +void +mlx5_glue_constructor(void) +{ +}