pkgdep: Prefer make -C to cd

Change-Id: I3a132a87b340232f1b3739cbff3c262ab8614a39
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/429527
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Ben Walker 2018-10-15 14:34:59 -07:00
parent 073f2dd8f2
commit ba502c17c5

View File

@ -91,10 +91,8 @@ else
if [ "$ipsec" == "" ]; 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
su - $SUDO_USER -c 'make'
make install
cd -
su - $SUDO_USER -c "make -C $rootdir/intel-ipsec-mb"
make -C $rootdir/intel-ipsec-mb install
else
echo "The intel-ipsec-mb submodule has not been cloned and will not be installed."
echo "To enable crypto, run 'git submodule update --init' and then run this script again."