summaryrefslogtreecommitdiffstats
path: root/build/Makefile
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-08-11 09:34:25 -0400
committerFeng Pan <fpan@redhat.com>2016-08-16 14:34:27 -0400
commit5ed8715821281129b89f6c959463dccc1ec5641a (patch)
treec2ff8f65376f9e4c0c0a8359ea6deac34b278d10 /build/Makefile
parent86c8fb3c833dd9acc80bb0e5367bee50aeebd5df (diff)
Added VPP (including python API) to build process
Change-Id: Iccc88105e92540fa2a52c827941827c05b8edf7b Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile31
1 files changed, 29 insertions, 2 deletions
diff --git a/build/Makefile b/build/Makefile
index 96711d23..91b1fc5a 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -27,7 +27,7 @@ all_networks="admin_network private_network storage_network external_network api
all: iso
.PHONY: clean
-clean: images-clean rpms-clean iso-clean tacker-clean congress-clean
+clean: images-clean rpms-clean iso-clean tacker-clean congress-clean vpp-clean
.PHONY: images
images: undercloud overcloud-full overcloud-opendaylight overcloud-onos overcloud-opendaylight-sfc
@@ -130,6 +130,33 @@ openstack-congress-2016.1-1.noarch.rpm:
rpmbuild --clean -bb --target noarch openstack-congress.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D '_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)'
###############
+# VPP #
+###############
+
+VPP_DIR = vpp
+
+.PHONY: vpp-clean
+vpp-clean:
+ @rm -f vpp-bin.tar.gz
+ @rm -rf vpp-bin vpp
+
+.PHONY: vpp-build
+vpp-build: vpp-bin.tar.gz
+
+vpp-bin.tar.gz: vpp
+ $(MAKE) -C $(VPP_DIR) UNATTENDED=yes install-dep bootstrap build pkg-rpm
+ $(MAKE) -C $(VPP_DIR)/build-root PLATFORM=vpp TAG=vpp_debug vpp-api-install
+ pushd vpp/vpp-api/python && python setup.py bdist
+ mkdir vpp-bin
+ mv vpp/build-root/*.rpm vpp-bin/
+ mv vpp/vpp-api/python/dist/*.tar.gz vpp-bin/
+ tar czf vpp-bin.tar.gz vpp-bin
+
+vpp:
+ git clone https://gerrit.fd.io/r/vpp
+
+
+###############
# UNDERCLOUD #
###############
@@ -174,7 +201,7 @@ overcloud-full-clean:
.PHONY: overcloud-full
overcloud-full: images/overcloud-full.qcow2
-images/overcloud-full.qcow2: tacker-rpm congress-rpm
+images/overcloud-full.qcow2: tacker-rpm congress-rpm vpp-build
@echo "Building the Apex Base Overcloud Image"
@./overcloud-full.sh