test/iscsi: build iSCSI unit tests on FreeBSD
Change-Id: Ie640069b831eba4eada9ff0955dca41af852d3a5 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
6b1046f780
commit
14cc383fb0
@ -76,6 +76,11 @@
|
|||||||
|
|
||||||
#define MAX_TMPBUF 1024
|
#define MAX_TMPBUF 1024
|
||||||
|
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define HAVE_SRANDOMDEV 1
|
||||||
|
#define HAVE_ARC4RANDOM 1
|
||||||
|
#endif
|
||||||
|
|
||||||
struct spdk_iscsi_globals g_spdk_iscsi;
|
struct spdk_iscsi_globals g_spdk_iscsi;
|
||||||
|
|
||||||
/* random value generation */
|
/* random value generation */
|
||||||
|
@ -34,10 +34,7 @@
|
|||||||
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||||
|
|
||||||
DIRS-y = bdev blob blobfs env event log json jsonrpc nvme nvmf scsi ioat util
|
DIRS-y = bdev blob blobfs env event ioat iscsi json jsonrpc log nvme nvmf scsi util
|
||||||
ifeq ($(OS),Linux)
|
|
||||||
DIRS-y += iscsi
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: all clean $(DIRS-y)
|
.PHONY: all clean $(DIRS-y)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user