From 61469cf4704f6a9a6e00d88d004b81cee6a1da21 Mon Sep 17 00:00:00 2001 From: Mike Playle Date: Tue, 26 Jun 2018 17:33:20 +0100 Subject: [PATCH] Don't build lib/cunit if tests are disabled This makes it possible to build SPDK on a machine which doesn't have CUnit installed. Change-Id: Icb4c01092d1432fcff4bdbbfa01489d1ddfcdd8b Signed-off-by: Mike Playle Reviewed-on: https://review.gerrithub.io/417663 Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System --- lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 66a735933..9e33a891e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -34,9 +34,10 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..) include $(SPDK_ROOT_DIR)/mk/spdk.common.mk -DIRS-y += bdev blob blobfs conf copy cunit event json jsonrpc \ +DIRS-y += bdev blob blobfs conf copy event json jsonrpc \ log lvol net rpc sock thread trace util nvme nvmf scsi ioat \ ut_mock iscsi +DIRS-$(CONFIG_TESTS) += cunit ifeq ($(OS),Linux) DIRS-y += nbd DIRS-$(CONFIG_VHOST) += vhost