build: rely on configure to select which unit tests to build
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
This commit is contained in:
parent
8e612918c2
commit
1b49dcefcb
@ -10,10 +10,10 @@ 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
|
||||
ifeq ($(OS),Linux)
|
||||
DIRS-$(CONFIG_VHOST) += vhost
|
||||
DIRS-y += ftl
|
||||
DIRS-$(CONFIG_RDMA) += rdma
|
||||
ifeq ($(OS),Linux)
|
||||
DIRS-y += ftl
|
||||
endif
|
||||
|
||||
.PHONY: all clean $(DIRS-y)
|
||||
|
Loading…
Reference in New Issue
Block a user