summaryrefslogtreecommitdiffstats
path: root/tools/vnf_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vnf_build.sh')
-rwxr-xr-xtools/vnf_build.sh22
1 files changed, 9 insertions, 13 deletions
diff --git a/tools/vnf_build.sh b/tools/vnf_build.sh
index d404cf82..53bee284 100755
--- a/tools/vnf_build.sh
+++ b/tools/vnf_build.sh
@@ -175,7 +175,8 @@ install_libs()
fi
sudo apt-get update
sudo apt-get -y install build-essential linux-headers-$(uname -r) git unzip libpcap0.8-dev gcc \
- make libc6 libc6-dev g++-multilib libzmq3-dev libcurl4-openssl-dev
+ make libc6 libc6-dev g++-multilib libzmq3-dev libcurl4-openssl-dev net-tools wget gcc unzip \
+ libpcap-dev libncurses-dev libedit-dev pciutils liblua5.2-dev libncursesw5-dev
touch .download
}
@@ -290,20 +291,15 @@ build_vnfs()
#--- Add non intractive option to build vnfs
if [[ "$1" = "--silient" ]];then
+ DPDK_VER=("" "16.04" "16.11" "17.02" "17.05")
+ member="$2"
+ for item in "${DPDK_VER[@]}"; do
+ if [[ "$member" == "$item" ]]; then
+ DPDK_RTE_VER="$member"
+ fi
+ done
pushd $VNF_CORE
- echo "Setup proxy if needed..."
- http_proxy=$2
- https_proxy=$3
- if [[ "$http_proxy" != "" ]]; then
- export http_proxy=$http_proxy
- export https_proxy=$http_proxy
- fi
-
- if [[ "$https_proxy" != "" ]]; then
- export https_proxy=$https_proxy
- fi
-
echo "Install required libraries..."
touch .agree
install_libs