summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-10-25 14:15:34 +0200
committerKim Hagen <kim.sidney@gmail.com>2018-10-25 14:15:34 +0200
commita0cdf15c5e65160cf2e56b1658cab11146109a11 (patch)
tree2ba51380c1fd4b6d29ba105e4f3f1e8fd011f310 /Makefile
parent16cc9be3ba331216392e988f20183ab8c4eda0ce (diff)
downloadvyos-build-a0cdf15c5e65160cf2e56b1658cab11146109a11.tar.gz
vyos-build-a0cdf15c5e65160cf2e56b1658cab11146109a11.zip
Add build command for AWS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f4a9ef29..b0904772 100644
--- a/Makefile
+++ b/Makefile
@@ -100,6 +100,20 @@ GCE: clean prepare
cd $(build_dir)
@../scripts/build-GCE-image
+.PHONY: AWS
+.ONESHELL:
+AWS: 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/AWS/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/AWS/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
+ cd $(build_dir)
+ lb build 2>&1 | tee build.log
+ cd ..
+ @scripts/copy-image
+
.PHONY: clean
.ONESHELL:
clean: