Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Valleroy <jvalleroy@mailbox.org>2015-01-10 18:22:53 -0500
committerJames Valleroy <jvalleroy@mailbox.org>2015-01-10 18:22:53 -0500
commit18e2a18972dc2ef606bf19875598519b5c424347 (patch)
tree5f0ef14b933a45e5f87346878d2fa058aecb952c
parenta13b68fd5f0ee086bcc65b4f596f6b4c2d9a6586 (diff)
parentafce41ebc2fe06a597120192488888da9645ab5c (diff)
Merge pull request #6 from vignanl/virtualbox64
Ability to build VirtualBox images with i386 and amd64 architectures
-rw-r--r--Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0503c4a..5706b19 100644
--- a/Makefile
+++ b/Makefile
@@ -63,12 +63,26 @@ beaglebone: prep
@echo "Build complete."
# build a virtualbox image
-virtualbox: prep
+virtualbox: virtualbox-i386
+
+virtualbox-i386: prep
$(eval ARCHITECTURE = i386)
$(eval MACHINE = virtualbox)
$(eval DESTINATION = hdd)
$(MAKE_IMAGE)
-# Convert image to vdi hard drive
+ # Convert image to vdi hard drive
+ VBoxManage convertdd $(NAME).img $(NAME).vdi
+ $(TAR) $(ARCHIVE) $(NAME).vdi
+ @echo ""
+ $(SIGN)
+ @echo "Build complete."
+
+virtualbox-amd64: prep
+ $(eval ARCHITECTURE = amd64)
+ $(eval MACHINE = virtualbox)
+ $(eval DESTINATION = hdd)
+ $(MAKE_IMAGE)
+ # Convert image to vdi hard drive
VBoxManage convertdd $(NAME).img $(NAME).vdi
$(TAR) $(ARCHIVE) $(NAME).vdi
@echo ""