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: Seth 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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
54198053d2
commit
f6dcd815f4
@ -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
|
||||
|
17
lib/idxd/spdk_idxd.map
Normal file
17
lib/idxd/spdk_idxd.map
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
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: *;
|
||||
};
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user