Commit 2a0c2a2d authored by Nick Connolly's avatar Nick Connolly Committed by Tomasz Zawadzki
Browse files

configure: Adjust platform tests for portability



Explicitly test sys_host against "Linux" which is clearly the intent
and matches the behaviour described in the comments.

Signed-off-by: default avatarNick Connolly <nick.connolly@mayadata.io>
Change-Id: Ic79d32b5d58bf556847849817e6bd72f70363335
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6055


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent 568915b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ if [[ "${CONFIG[ISAL]}" = "y" ]]; then
	fi
fi

if [[ $sys_name == "FreeBSD" ]]; then
if [[ $sys_name != "Linux" ]]; then
	# Vhost, rte_vhost library and virtio are only supported on Linux.
	CONFIG[VHOST]="n"
	CONFIG[VIRTIO]="n"
@@ -553,7 +553,7 @@ if [[ $sys_name == "FreeBSD" ]]; then
	fi
fi

if [[ $sys_name == "FreeBSD" ]]; then
if [[ $sys_name != "Linux" ]]; then
	if [[ "${CONFIG[VHOST]}" == "y" ]]; then
		echo "Vhost is only supported on Linux."
		exit 1