pkgdep.sh: Fix error handling for ipsec submodule

If the ipsec submodule is registered to spdk, an empty intel-ipsec-mb
directory will be created. We could potentially try to run make inside
of this empty directory, so instead do a preemptive submodule update.

Change-Id: I367fdef468bf21ef91b8354155d199cea97c3daa
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/428404
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Seth Howell 2018-10-08 10:43:42 -07:00 committed by Jim Harris
parent e3cd058cb4
commit 5faf653f0c

View File

@ -89,7 +89,8 @@ if [ $nasm_ver -lt "21202" ]; then
else
ipsec="$(find /usr -name intel-ipsec-mb.h 2>/dev/null)"
if [ "$ipsec" == "" ]; then
if [ -d "$rootdir/intel-ipsec-mb" ]; then
ipsec_submodule_cloned="$(find $rootdir/intel-ipsec-mb -name intel-ipsec-mb.h 2>/dev/null)"
if [ "$ipsec_submodule_cloned" != "" ]; then
cd $rootdir/intel-ipsec-mb
make
make install