summaryrefslogtreecommitdiffstats
path: root/fuel/build/f_isoroot/f_odlpluginbuild/Makefile
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2015-09-25 07:40:23 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-25 07:40:23 +0000
commit7673a00b0d0cc09af8f296106ded7787510a6819 (patch)
tree4713080294bb72f85dcf384bb438899e2d905a79 /fuel/build/f_isoroot/f_odlpluginbuild/Makefile
parent48914ddcaaf2d4aa1b62f9799a220065e2578b11 (diff)
parenta73a2551cd0986a94402ed98e1608d861e22d709 (diff)
Merge "Build Fuel ODL plugin"
Diffstat (limited to 'fuel/build/f_isoroot/f_odlpluginbuild/Makefile')
-rw-r--r--fuel/build/f_isoroot/f_odlpluginbuild/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/fuel/build/f_isoroot/f_odlpluginbuild/Makefile b/fuel/build/f_isoroot/f_odlpluginbuild/Makefile
new file mode 100644
index 0000000..ce9cd73
--- /dev/null
+++ b/fuel/build/f_isoroot/f_odlpluginbuild/Makefile
@@ -0,0 +1,38 @@
+##############################################################################
+# Copyright (c) 2015 Ericsson AB and others.
+# mskalski@mirantis.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+TOP := $(shell pwd)
+DOCKNAME = fuelrepo
+DOCKVERSION = 1.0
+ODL_BRANCH="juno/lithium-sr1"
+ODL_REPO="https://github.com/stackforge/fuel-plugin-opendaylight.git"
+
+.PHONY: all
+all: .odlbuild
+
+.PHONY: clean
+clean:
+ # Deliberately not cleaning nailgun directory to speed up multiple builds
+ @rm -f ../release/opnfv/opendaylight*.rpm
+
+.PHONY: release
+release:.odlbuild
+ @rm -f ../release/opnfv/opendaylight*.rpm
+ @mkdir -p ../release/opnfv
+ @cp opendaylight*.rpm ../release/opnfv/
+
+.odlbuild:
+ rm -rf fuel-plugin-opendaylight
+ sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
+ sudo gem install fpm
+ sudo pip install fuel-plugin-builder
+ git clone -b ${ODL_BRANCH} ${ODL_REPO}
+ INCLUDE_DEPENDENCIES=true fpb --debug --build fuel-plugin-opendaylight/
+ mv fuel-plugin-opendaylight/opendaylight*.rpm .
+ rm -rf fuel-plugin-opendaylight