summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-10-23 23:58:42 +0200
committerKim Hagen <kim.sidney@gmail.com>2018-10-23 23:58:42 +0200
commit16cc9be3ba331216392e988f20183ab8c4eda0ce (patch)
treee39eef286e6c838ba0382cd76a8269fe591b53c7 /Makefile
parentf6c147b9ae7d2d62cf765c0b91514a052209b591 (diff)
downloadvyos-build-16cc9be3ba331216392e988f20183ab8c4eda0ce.tar.gz
vyos-build-16cc9be3ba331216392e988f20183ab8c4eda0ce.zip
Separate files needed for different cloud providers
Fix serial console speed settings Add google cloud image generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f0af3ab3..f4a9ef29 100644
--- a/Makefile
+++ b/Makefile
@@ -82,12 +82,24 @@ clearfog: clean prepare
azure: clean prepare
@set -e
@echo "It's not like I'm building this specially for you or anything!"
- cp tools/cloud-init/99-walinuxagent.chroot build/config/hooks/
- cp tools/cloud-init/vyos-azure.list.chroot build/config/package-lists/
- cp -f tools/cloud-init/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
+ cp tools/cloud-init/azure/99-walinuxagent.chroot build/config/hooks/
+ cp tools/cloud-init/azure/vyos-azure.list.chroot build/config/package-lists/
+ cp -f tools/cloud-init/azure/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
cd $(build_dir)
@../scripts/build-azure-image
+.PHONY: GCE
+.ONESHELL:
+GCE: clean prepare
+ @set -e
+ @echo "It's not like I'm building this specially for you or anything!"
+ mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d
+ cp tools/cloud-init/GCE/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/
+ cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/
+ cp -f tools/cloud-init/GCE/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
+ cd $(build_dir)
+ @../scripts/build-GCE-image
+
.PHONY: clean
.ONESHELL:
clean:
@@ -101,6 +113,8 @@ clean:
rm -f *.img
rm -f *.xz
rm -f *.vhd
+ rm -f *.raw
+ rm -f *.tar.gz
.PHONY: purge
purge: