aboutsummaryrefslogtreecommitdiffstats
path: root/build/arch/Debian
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2015-09-08 07:47:19 -0400
committerbaigk <baiguoku@huawei.com>2015-09-08 08:24:09 -0400
commitcf87d3067a63cb8be315a3addfd9c27d86be3b5a (patch)
tree861d46aebc75c73cc13a19fecfb5c48aa88a56a1 /build/arch/Debian
parent633175ed2c5d0ab339027ba0a542bcdd4d3769c0 (diff)
Build improvement for speedup and using public repo
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'build/arch/Debian')
-rw-r--r--build/arch/Debian/make_openvswitch-switch.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/arch/Debian/make_openvswitch-switch.sh b/build/arch/Debian/make_openvswitch-switch.sh
new file mode 100644
index 00000000..80b27a79
--- /dev/null
+++ b/build/arch/Debian/make_openvswitch-switch.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+apt-get update
+apt-get install -y build-essential fakeroot debhelper \
+ autoconf automake bzip2 libssl-dev \
+ openssl graphviz python-all procps \
+ python-qt4 python-zopeinterface \
+ python-twisted-conch libtool wget
+
+pushd .
+cd /tmp
+wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
+tar -zxvf openvswitch-2.3.1.tar.gz
+cd openvswitch-2.3.1
+DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
+cd -
+cp -f *.deb /var/cache/apt/archives/
+popd