summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-05-19 03:30:13 +0530
committerDeepak S <deepak.s@linux.intel.com>2017-05-18 22:13:03 -0700
commit929cb01bf4ab8b5e7ddfbdb5b26499c21fba2437 (patch)
treed4e14a68ef11c44fe991f49b8ea4ceb3a3b1c646
parent141750af33aad7f3be186e0795d543b2b2f8a09d (diff)
Adding support to build the vnfs without user intervention
./tools/vnf_build.sh --silient Change-Id: I50ecdc263a732d1ed823202107e49ffaa739e9b4 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
-rwxr-xr-xtools/vnf_build.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/vnf_build.sh b/tools/vnf_build.sh
index f7ffe76e..2a9417ca 100755
--- a/tools/vnf_build.sh
+++ b/tools/vnf_build.sh
@@ -258,6 +258,30 @@ build_vnfs()
popd
}
+#--- Add non intractive option to build vnfs
+if [[ "$1" = "--silient" ]];then
+ pushd $VNF_CORE
+
+ echo "Install required libraries..."
+ touch .agree
+ install_libs
+
+ echo "Download dpdk for VNF build..."
+ download_dpdk_zip
+
+ echo "Build dpdk..."
+ install_dpdk
+
+ echo "Setup hugepages..."
+ setup_hugepages
+
+ echo "build VNFS..."
+ build_vnfs
+
+ popd
+ exit
+fi
+
SETUP_PROXY="setup_http_proxy"
STEPS[1]="step_1"
STEPS[2]="step_2"