Commit f6dcd815 authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

lib/idxd: add a map file.



While we are here, give the library an so suffix
which was missed when the library was initially
created.

Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Change-Id: I68929127bf672c0f2f7153f9716882d03151480e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2209


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 54198053
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -34,7 +34,13 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

SO_VER := 2
SO_MINOR := 0
SO_SUFFIX := $(SO_VER).$(SO_MINOR)

C_SRCS = idxd.c
LIBNAME = idxd

SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_idxd.map)

include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk

lib/idxd/spdk_idxd.map

0 → 100644
+17 −0
Original line number Diff line number Diff line
{
	global:

	# public functions
	spdk_idxd_configure_chan;
	spdk_idxd_reconfigure_chan;
	spdk_idxd_probe;
	spdk_idxd_detach;
	spdk_idxd_set_config;
	spdk_idxd_submit_copy;
	spdk_idxd_submit_fill;
	spdk_idxd_process_events;
	spdk_idxd_get_channel;
	spdk_idxd_put_channel;

	local: *;
};
+7 −3
Original line number Diff line number Diff line
@@ -34,7 +34,8 @@ function confirm_abi_deps() {
	fi

	cat << EOF > ${suppression_file}

[suppress_variable]
	name = SPDK_LOG_IDXD
EOF

	for object in "$libdir"/libspdk_*.so; do
@@ -87,9 +88,12 @@ EOF

			if [ "$so_name_changed" != "No" ]; then
				if ! $found_abi_change; then
					# Unfortunately, libspdk_idxd made it into 20.04 without an SO suffix. TODO:: remove after 20.07
					if [ "$so_file" != "libspdk_idxd.so" ]; then
						echo "SO name for $so_file changed without a change to abi. please revert that change."
						touch $fail_file
					fi
				fi

				if [ "$new_so_maj" != "$old_so_maj" ] && [ "$new_so_min" != "0" ]; then
					echo "SO major version for $so_file was bumped. Please reset the minor version to 0."