Add implementation of uuid_generate_sha1() for systems that do not have this function in their system libraries. Use uuid_generate_sha1 from uuid.h inside a new function spdk_uuid_generate_sha1(). The reason for this addition is to prepare for UUID generation correction to conform to standards. First part of series addressing #2788. Change-Id: Ib357aa1ee832e886288d176d8a47efdaa326f537 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16414 Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
32 lines
725 B
Makefile
32 lines
725 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2015 Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
SO_VER := 6
|
|
SO_MINOR := 0
|
|
|
|
C_SRCS = base64.c bit_array.c cpuset.c crc16.c crc32.c crc32c.c crc32_ieee.c \
|
|
dif.c fd.c file.c hexlify.c iov.c math.c pipe.c strerror_tls.c string.c uuid.c \
|
|
fd_group.c xor.c zipf.c
|
|
LIBNAME = util
|
|
|
|
ifneq ($(OS),FreeBSD)
|
|
LOCAL_SYS_LIBS = -luuid
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ISAL), y)
|
|
LOCAL_SYS_LIBS += -L$(ISAL_DIR)/.libs -lisal
|
|
endif
|
|
|
|
ifeq ($(CONFIG_HAVE_UUID_GENERATE_SHA1), n)
|
|
LOCAL_SYS_LIBS += -lssl
|
|
endif
|
|
|
|
SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_util.map)
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|