Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Mohan Adapa <sunil@medhas.org>2015-02-12 00:32:50 +0530
committerSunil Mohan Adapa <sunil@medhas.org>2015-02-12 00:32:50 +0530
commit8ea8a960f437364f7819b9c90c73a5d4cfe3f1fd (patch)
tree104c65c544d56d0194e6ac516e0245deb3f640e4
parente10edc5f3ef90c36785635baf744b5d8572a2517 (diff)
Add support for building i386/amd64 images
We need to support virtualizations tools other than VirtualBox. Qemu/KVM and possibly other technologies can use a vanilla hard drive image and work with them. Further, there are many single board computers with i386/amd64 architectures. These images are likely to run on them. Although while building virtualbox images, these images already a bi-product, user can't easily work out how to use them. From now on, we can make available these images as well.
-rw-r--r--Makefile22
-rwxr-xr-xbin/mk_freedombox_image5
2 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 624ff43..56b90b9 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,28 @@ cubietruck: prep
$(SIGN)
@echo "Build complete."
+# build an i386 image
+i386: prep
+ $(eval ARCHITECTURE = i386)
+ $(eval MACHINE = all)
+ $(eval DESTINATION = hdd)
+ $(MAKE_IMAGE)
+ $(TAR) $(ARCHIVE) $(IMAGE)
+ @echo ""
+ $(SIGN)
+ @echo "Build complete."
+
+# build an amd64 image
+amd64: prep
+ $(eval ARCHITECTURE = amd64)
+ $(eval MACHINE = all)
+ $(eval DESTINATION = hdd)
+ $(MAKE_IMAGE)
+ $(TAR) $(ARCHIVE) $(IMAGE)
+ @echo ""
+ $(SIGN)
+ @echo "Build complete."
+
# build a virtualbox image
virtualbox: virtualbox-i386
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index c88b148..b436010 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -108,6 +108,11 @@ case "$MACHINE" in
--grub \
--roottype btrfs \
" ;;
+ all)
+ extra_opts="\
+ --grub \
+ --roottype btrfs \
+" ;;
esac
# allow for lots of extra fun customization options.