vm_setup: increase number of jobs in make command

Increase number of jobs for make to speed up the script.

Change-Id: Ida5a1f590320b80a65648b841a98abc743ea6514
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/399369
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Karol Latecki 2018-02-12 10:46:23 +01:00 committed by Jim Harris
parent 9f04ca414c
commit 91c7f6f527

View File

@ -21,6 +21,8 @@
set -e
jobs=$(($(nproc)*2))
sudo dnf upgrade -y
sudo dnf install -y gcc
sudo dnf install -y gcc-c++
@ -80,7 +82,7 @@ sudo dnf install -y perl-Switch librdmacm-utils libibverbs-utils
cd librxe-dev
./configure --libdir=/usr/lib64/ --prefix=
make
make -j${jobs}
sudo make install
cd ~
@ -111,7 +113,7 @@ if [ "$CURRENT_VERSION" == "$OPEN_ISCSI_VER" ]; then
git am ../patches/$patch
done
sed -i '427s/.*/-1);/' usr/session_info.c
make
make -j${jobs}
sudo make install
cd ~
fi
@ -129,7 +131,7 @@ sudo mv fio /usr/src/
(
cd /usr/src/fio &&
git checkout fio-3.3 &&
make &&
make -j${jobs} &&
sudo make install
)
cd ~
@ -147,7 +149,7 @@ if hash tsocks &> /dev/null; then
git_param="--with-git='tsocks git'"
fi
./configure "$git_param" --prefix=/usr/local/qemu/$SPDK_QEMU_BRANCH --target-list="x86_64-softmmu" --enable-kvm --enable-linux-aio --enable-numa
make
make -j${jobs}
sudo make install
cd ~
@ -157,7 +159,7 @@ git clone https://github.com/sahlberg/libiscsi
cd libiscsi
./autogen.sh
./configure --prefix=/usr/local/libiscsi
make
make -j${jobs}
sudo make install