Merge "Turn kvm-plugin back on"
[fuel.git] / build / f_isoroot / f_kscfg / Makefile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 TOP := $(shell pwd)
12
13 .PHONY: all
14 all:    ks.cfg.iso
15         @mkdir -p release
16         grep -q OpenStack_Fuel ks.cfg.iso
17         sed "s/OpenStack_Fuel/$(PRODNO)_$(REVSTATE)/g" ks.cfg.iso > ks.cfg
18         /usr/bin/patch -p0 < ks.cfg.patch
19         @cp ks.cfg.iso release/ks.cfg.orig
20         @cp ks.cfg release/ks.cfg
21
22 ks.cfg.iso:
23         7z -so x $(ISOCACHE) ks.cfg > ks.cfg.iso
24
25 .PHONY: clean
26 clean:
27         @rm -rf release ks.cfg.iso ks.cfg
28
29 .PHONY: release
30 release: all
31         @cp -Rvp release/* ../release
32
33 #############################################################################
34 # Cache operations - only used when building through ci/build.sh
35 #############################################################################
36
37 # Clean local data related to caching - called prior to ordinary build
38 .PHONY: clean-cache
39 clean-cache: clean
40         @echo "clean-cache not implemented"
41
42 # Try to download cache - called prior to ordinary build
43 .PHONY: get-cache
44 get-cache:
45         @echo "get-cache not implemented"
46
47 # Store cache if not already stored - called after ordinary build
48 .PHONY: put-cache
49 put-cache:
50         @echo "put-cache not implemented"