vm_setup: Compile refspdk in a subshell
This is done in order to not taint the rest of the environment with autotest settings. Change-Id: Iad31096aa29d4893200e64c77f2cf22663f0dfc7 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2524 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
18bc2f70d6
commit
c943701c7d
@ -31,26 +31,29 @@ function install_refspdk() {
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p $HOME/output
|
mkdir -p $HOME/output
|
||||||
rootdir="$output_dir"
|
|
||||||
source $HOME/autorun-spdk.conf
|
|
||||||
source $output_dir/test/common/autotest_common.sh
|
|
||||||
|
|
||||||
# Prepare separate, fixed, cmdline for the FreeBSD, Issue #1397.
|
(
|
||||||
if [[ $OSID == freebsd ]]; then
|
rootdir="$output_dir"
|
||||||
config_params="--enable-debug --enable-werror"
|
source $HOME/autorun-spdk.conf
|
||||||
config_params+=" --with-idxd --with-fio=/usr/src/fio"
|
source $output_dir/test/common/autotest_common.sh
|
||||||
config_params+=" --disable-unit-tests --without-isal"
|
|
||||||
MAKE=gmake
|
# Prepare separate, fixed, cmdline for the FreeBSD, Issue #1397.
|
||||||
else
|
if [[ $OSID == freebsd ]]; then
|
||||||
config_params="$(get_config_params)"
|
config_params="--enable-debug --enable-werror"
|
||||||
fi
|
config_params+=" --with-idxd --with-fio=/usr/src/fio"
|
||||||
$output_dir/configure $(echo $config_params | sed 's/--enable-coverage//g')
|
config_params+=" --disable-unit-tests --without-isal"
|
||||||
if [[ $OSID != freebsd ]]; then
|
MAKE=gmake
|
||||||
$MAKE -C $output_dir $MAKEFLAGS include/spdk/config.h
|
else
|
||||||
CONFIG_OCF_PATH="$output_dir/ocf" $MAKE -C $output_dir/lib/env_ocf $MAKEFLAGS exportlib O=$output_dir/build/ocf.a
|
config_params="$(get_config_params)"
|
||||||
$output_dir/configure $config_params --with-ocf=$output_dir/build/ocf.a --with-shared
|
fi
|
||||||
fi
|
$output_dir/configure $(echo $config_params | sed 's/--enable-coverage//g')
|
||||||
$MAKE -C $output_dir $MAKEFLAGS
|
if [[ $OSID != freebsd ]]; then
|
||||||
|
$MAKE -C $output_dir $MAKEFLAGS include/spdk/config.h
|
||||||
|
CONFIG_OCF_PATH="$output_dir/ocf" $MAKE -C $output_dir/lib/env_ocf $MAKEFLAGS exportlib O=$output_dir/build/ocf.a
|
||||||
|
$output_dir/configure $config_params --with-ocf=$output_dir/build/ocf.a --with-shared
|
||||||
|
fi
|
||||||
|
$MAKE -C $output_dir $MAKEFLAGS
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_qat() {
|
function install_qat() {
|
||||||
|
Loading…
Reference in New Issue
Block a user