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: Nick Connolly <nick.connolly@mayadata.io> Change-Id: Ic79d32b5d58bf556847849817e6bd72f70363335 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6055 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
568915b6e4
commit
2a0c2a2dcc
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user