aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/Makefile
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2020-01-24 11:06:14 +0100
committerKonrad Bańka <k.banka@samsung.com>2020-02-26 16:16:41 +0100
commitbe3024dfe9b6c06419c6f4a5f724a01b7e0ab103 (patch)
treedf44d4b265d40fd225844485c1de860c13d9966a /heat/vFW_CNF_CDS/templates/Makefile
parent42ecc70c1f5a05c4de5dda414a7964398552b47d (diff)
Correct CBA package for vFW_CNF_CDS usecase
This fixes change helm and cba content to enable instantiation with some workarounds. Data dictionary in this review is not ready yet, as well as there are many workarounds within. Signed-off-by: Konrad Bańka <k.banka@samsung.com> Issue-ID: INT-1260 Change-Id: I4833fa11772b7bd2b65d04f0d81ffad22570d309
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/Makefile')
-rw-r--r--heat/vFW_CNF_CDS/templates/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/heat/vFW_CNF_CDS/templates/Makefile b/heat/vFW_CNF_CDS/templates/Makefile
index 244f9232..98b2890d 100644
--- a/heat/vFW_CNF_CDS/templates/Makefile
+++ b/heat/vFW_CNF_CDS/templates/Makefile
@@ -1,20 +1,27 @@
-.PHONY: all clean helm base
+.PHONY: all clean helm base cba
+CSAR_NAME ?= vfw_k8s_demo
+CBA_NAME ?= vFW_CDS_CNF
-all: csar/ helm base
- cd csar/ && zip -r vfw_k8s_demo.csar .
- mv csar/vfw_k8s_demo.csar .
+all: csar/ helm base cba
+ #Can't use .csar extension or SDC will panic
+ cd csar/ && zip -r $(CSAR_NAME).zip .
+ mv csar/$(CSAR_NAME).zip .
helm: csar/
make -C helm
- cp helm/*.tgz csar/
+ mv helm/*.tgz csar/
base: csar/
cp base/* csar/
+cba: csar/
+ cd cba/ && zip -r $(CBA_NAME).zip .
+ mv cba/$(CBA_NAME).zip csar/
+
csar/:
mkdir csar/
clean:
rm -rf csar/
- rm -f vfw_k8s_demo.csar
+ rm -f $(CSAR_NAME).zip