aboutsummaryrefslogtreecommitdiffstats
path: root/build/os
AgeCommit message (Collapse)AuthorFilesLines
2015-12-23support build compass-core ppabaigk1-0/+25
JIRA: COMPASS-213 Change-Id: I95617273e53df5ae060dd8053fbb2eaff946de06 Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-01support libverty on ubuntucarey.xu1-0/+26
JIRA: COMPASS-169 Change-Id: I4656cf43eb3db0ba61fae4b03416b9c0239bb50b Signed-off-by: carey.xu <carey.xuhan@huawei.com>
2015-11-17Merge "using ELK in web-ui for running log"Justin chi1-0/+4
2015-11-16suport installing openstack kilo on centos 7baigk1-0/+27
JIRA: COMPASS-141 Change-Id: I8b4eeacd802124cd05d17c7c24682254f0c567f7 Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-16using ELK in web-ui for running loggrakiss1-0/+4
JIRA: COMPASS-142 - make repo for elk Change-Id: I3f0cc25d0485463edeff40f2ded03863c16fe8b5 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2015-10-20please replace all the URL that cannot be accessed from internationalm001331424-61/+0
JIRA: COMPASS-110 Change-Id: Ia602064fb08b5f398f4e34bbbe358d5312b6743e Signed-off-by: m00133142 <meimei@huawei.com>
2015-09-28bugfix: as global user, using 163 source is unstable, so do not use 163 sourcem001331421-3/+0
JIRA: COMPASS-74 Change-Id: Ie0b6bb7e9673d2c3c2cfe2227dfdafe55a406e89 Signed-off-by: m00133142 <meimei@huawei.com>
2015-09-25switch the source to ubuntum001331421-1/+1
JIRA: COMPASS-74 Change-Id: Ic5832ede3894a5f7955be375171de9d4aee99fe0 Signed-off-by: m00133142 <meimei@huawei.com>
2015-09-24support ceph deploy for centosgrakiss2-0/+30
JIRA: COMPASS-60 Change-Id: I9bcc5009b7d9b2f3cc48f1f1a448a1f07af65494 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2015-09-17Add parameter allows users to add their own package or scripts of making ↵baigk4-12/+8
package to ISO file JIRA: COMPASS-55 Change-Id: I2ef6539ebf73fe57fb2a5dcb01ff5d8c4727dc1f Signed-off-by: baigk <baiguoku@huawei.com>
2015-09-11make ppa fail due to the problem of base.repo pathbaigk1-1/+1
Change-Id: I90af434d4c2cba2ea85d9d75f57897cc5d707b95 JIRA: COMPASS-42
2015-09-08Build improvement for speedup and using public repobaigk6-0/+8748
JIRA: COMPASS-19 Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b Signed-off-by: baigk <baiguoku@huawei.com>
fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
##############################################################################
# Copyright (c) 2015 Ericsson AB and others.
# jonas.bjurel@eicsson.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)

############################################################################
# BEGIN of Include definitions
#
include config.mk
#
# END Include definitions
#############################################################################

.PHONY: all
all: .qemubuild

.PHONY: clean
clean:
	@rm -f .qemubuild ../release/opnfv/fuel-plugin-qemu*.rpm fuel-plugin-qemu*.rpm
	@rm -f $(BUILD_BASE)/gitinfo_qemu-plugin.txt gitinfo_qemu-plugin.txt

.PHONY: release
release:.qemubuild
	@rm -f ../release/opnfv/fuel-plugin-qemu*.rpm
	@mkdir -p ../release/opnfv
	@cp fuel-plugin-qemu*.rpm ../release/opnfv/
	cp gitinfo_qemu-plugin.txt $(BUILD_BASE)

.qemubuild:
	@rm -rf fuel-plugin-qemu
	sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
	sudo pip install fuel-plugin-builder
	../../docker/ubuntu-builder/install_docker.sh
	git clone $(QEMU_REPO)
	cd fuel-plugin-qemu; \
	git checkout $(QEMU_BRANCH); \
	if [ ! -z $(QEMU_CHANGE) ]; then \
	   git fetch $(QEMU_REPO) $(QEMU_CHANGE); \
	   git checkout FETCH_HEAD; \
	fi
	INCLUDE_DEPENDENCIES=true fpb --debug --build fuel-plugin-qemu/
	@mv fuel-plugin-qemu/fuel-plugin-qemu*.rpm .
	$(REPOINFO) -r . > gitinfo_qemu-plugin.txt
	@rm -rf fuel-plugin-qemu
	@touch .qemubuild
	# Store artifact in cache straight away if caching is enabled
	# (no .cacheid will be present unless this is a cached build)
	test -f .cacheid && $(MAKE) -f Makefile put-cache || exit 0

#############################################################################
# Cache operations - only used when building through ci/build.sh
#############################################################################


# Create a unique hash to be used for getting and putting cache, based on:
#   - The SHA1 hash of the HEAD on the plugin repo's $(QEMU_BRANCH)
#   - The contents of this Makefile
.cacheid:
	@if [ ! -z $(QEMU_CHANGE) ]; then \
	  $(CACHETOOL) getcommitid $(QEMU_REPO) $(QEMU_CHANGE) > .cachedata; \
	else \
	  $(CACHETOOL) getcommitid $(QEMU_REPO) $(QEMU_BRANCH) > .cachedata; \
	fi
	@sha1sum Makefile | awk {'print $$1'} >> .cachedata
	@sha1sum config.mk | awk {'print $$1'} >> .cachedata
	@cat .cachedata | $(CACHETOOL) getid > .cacheid

# Clean local data related to caching - called prior to ordinary build
.PHONY: clean-cache
clean-cache: clean
	@rm -f .cachedata .cacheid

# Try to download cache - called prior to ordinary build
.PHONY: get-cache
get-cache: .cacheid
	@if $(CACHETOOL) check $(shell cat .cacheid); then \
		 $(CACHETOOL) get $(shell cat .cacheid) | tar xf -;\
	else \
		echo "No cache item found for $(shell cat .cacheid)" ;\
		exit 0;\
	fi

# Store cache if not already stored - called after ordinary build
.PHONY: put-cache
put-cache: .cacheid
	@tar cf - .qemubuild fuel-plugin-qemu*.rpm gitinfo_qemu-plugin.txt | $(CACHETOOL) put $(shell cat .cacheid)