07965f36dd
Install dependencies under 'root' user. Change-Id: I3e2e7f07a5cb1cbc4ae571d42de0e53c314fee5a Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com> Reviewed-on: https://review.gerrithub.io/377944 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
40 lines
939 B
Bash
Executable File
40 lines
939 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SPDK_DIR=/spdk
|
|
|
|
SUDOCMD="sudo -H -u vagrant"
|
|
echo 0:$0
|
|
echo 1:$1
|
|
echo 2:$2
|
|
echo SUDOCMD: $SUDOCMD
|
|
|
|
# Figure out what system we are running on
|
|
if [ -f /etc/lsb-release ];then
|
|
. /etc/lsb-release
|
|
elif [ -f /etc/redhat-release ];then
|
|
sudo yum install -y redhat-lsb
|
|
DISTRIB_ID=`lsb_release -si`
|
|
DISTRIB_RELEASE=`lsb_release -sr`
|
|
DISTRIB_CODENAME=`lsb_release -sc`
|
|
DISTRIB_DESCRIPTION=`lsb_release -sd`
|
|
fi
|
|
KERNEL_OS=`uname -o`
|
|
KERNEL_MACHINE=`uname -m`
|
|
KERNEL_RELEASE=`uname -r`
|
|
KERNEL_VERSION=`uname -v`
|
|
|
|
echo KERNEL_OS: $KERNEL_OS
|
|
echo KERNEL_MACHINE: $KERNEL_MACHINE
|
|
echo KERNEL_RELEASE: $KERNEL_RELEASE
|
|
echo KERNEL_VERSION: $KERNEL_VERSION
|
|
echo DISTRIB_ID: $DISTRIB_ID
|
|
echo DISTRIB_RELEASE: $DISTRIB_RELEASE
|
|
echo DISTRIB_CODENAME: $DISTRIB_CODENAME
|
|
echo DISTRIB_DESCRIPTION: $DISTRIB_DESCRIPTION
|
|
|
|
cd $SPDK_DIR
|
|
./scripts/pkgdep.sh
|
|
$SUDOCMD ./configure --enable-debug
|
|
$SUDOCMD make clean
|
|
$SUDOCMD make -j2
|