aboutsummaryrefslogtreecommitdiffstats
path: root/build/packages
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2016-01-09 02:31:54 +0800
committerJustin chi <chigang@huawei.com>2016-01-19 12:06:41 +0000
commitb7f58edf25f41c09e4fe1bd72283ad350e80fb1a (patch)
treead7fb16e70c72ea93de2ce35efc42d98817a3efa /build/packages
parent9228e6791f78ce0ff29618d3f9f9b942fa51c26f (diff)
add files for build onos/odl/open-contrail
JIRA: COMPASS-258 Change-Id: Ie49a49971c00d1fee291bbdf8d98b06b18854651 Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'build/packages')
-rw-r--r--build/packages/make_odl.sh11
-rw-r--r--build/packages/make_onos.sh16
-rw-r--r--build/packages/make_opencon-trail.sh11
3 files changed, 38 insertions, 0 deletions
diff --git a/build/packages/make_odl.sh b/build/packages/make_odl.sh
new file mode 100644
index 00000000..7da5ba58
--- /dev/null
+++ b/build/packages/make_odl.sh
@@ -0,0 +1,11 @@
+
+WORK_PATH=$(cd "$(dirname "$0")"/..; pwd)
+
+source $WORK_PATH/build/build.conf
+
+for i in odl.tar.gz; do
+ curl --connect-timeout $TIMEOUT -o $WORK_PATH/work/repo/temp/$i $PACKAGE_URL/$i
+ tar -zxvf $WORK_PATH/work/repo/temp/$i -C $WORK_PATH/work/repo/packages
+done
+
+
diff --git a/build/packages/make_onos.sh b/build/packages/make_onos.sh
new file mode 100644
index 00000000..2b94c979
--- /dev/null
+++ b/build/packages/make_onos.sh
@@ -0,0 +1,16 @@
+
+WORK_PATH=$(cd "$(dirname "$0")"/..; pwd)
+
+source $WORK_PATH/build/build.conf
+
+mkdir -p $WORK_PATH/work/repo/packages/onos
+for i in repository.tar jdk-8u51-linux-x64.tar.gz; do
+ curl --connect-timeout $TIMEOUT -o $WORK_PATH/work/repo/packages/onos/$i $PACKAGE_URL/$i
+done
+
+git clone https://gerrit.opnfv.org/gerrit/onosfw $WORK_PATH/work/repo/temp/onosfw
+
+pushd .
+cd $WORK_PATH/work/repo/temp/onosfw/
+. autobuild.sh $WORK_PATH/work/repo/packages/onos
+popd
diff --git a/build/packages/make_opencon-trail.sh b/build/packages/make_opencon-trail.sh
new file mode 100644
index 00000000..0430c12a
--- /dev/null
+++ b/build/packages/make_opencon-trail.sh
@@ -0,0 +1,11 @@
+
+WORK_PATH=$(cd "$(dirname "$0")"/..; pwd)
+
+source $WORK_PATH/build/build.conf
+
+for i in open-contrail.tar.gz; do
+ curl --connect-timeout $TIMEOUT -o $WORK_PATH/work/repo/temp/$i $PACKAGE_URL/$i
+ tar -zxvf $WORK_PATH/work/repo/temp/$i -C $WORK_PATH/work/repo/packages
+done
+
+