pkgdep/git: Don't fail install_qat() if qat_c62x is not loaded

Change-Id: I3784e3f7983a7f66ea68b2bd8b97f98b282e3405
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3201
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Michal Berger 2020-07-03 11:35:48 +02:00 committed by Tomasz Zawadzki
parent f0ba1e9e44
commit 0bec3c3c64

View File

@ -77,7 +77,9 @@ function install_qat() {
kernel_maj=$(uname -r | cut -d'.' -f1)
kernel_min=$(uname -r | cut -d'.' -f2)
sudo modprobe -r qat_c62x
if [[ -e /sys/module/qat_c62x ]]; then
sudo modprobe -r qat_c62x || :
fi
if [[ -d $GIT_REPOS/QAT ]]; then
sudo rm -rf "$GIT_REPOS/QAT"
fi