Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignan Lavu <vignan.lavu@gmail.com>2015-01-05 13:53:09 +0530
committerVignan Lavu <vignan.lavu@gmail.com>2015-01-05 13:53:09 +0530
commitafce41ebc2fe06a597120192488888da9645ab5c (patch)
treee02b9369942908bb03e2a4bb4df7480238cc5264
parent0569813436e7b7c283dc827bba15ec54667f1ddb (diff)
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 ""