There's no reason to check the OS to decide whether to build some unit tests if we can rely on the configure parameters. For instance, on FreeBSD, RDMA unit tests can be built and run successfully, while vhost is always disabled in configure. Fixes #2941. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I0073783dcafa932f3a7f48fa553e04be7ae44f84 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17182 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
25 lines
615 B
Makefile
25 lines
615 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
|
|
|
|
DIRS-y = accel bdev blob blobfs dma event ioat iscsi json jsonrpc log lvol
|
|
DIRS-y += notify nvme nvmf scsi sock thread util env_dpdk init rpc
|
|
DIRS-$(CONFIG_IDXD) += idxd
|
|
DIRS-$(CONFIG_VBDEV_COMPRESS) += reduce
|
|
DIRS-$(CONFIG_VHOST) += vhost
|
|
DIRS-$(CONFIG_RDMA) += rdma
|
|
ifeq ($(OS),Linux)
|
|
DIRS-y += ftl
|
|
endif
|
|
|
|
.PHONY: all clean $(DIRS-y)
|
|
|
|
all: $(DIRS-y)
|
|
clean: $(DIRS-y)
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
|