diff options
author | Sunil Mohan Adapa <sunil@medhas.org> | 2015-02-12 00:32:50 +0530 |
---|---|---|
committer | Sunil Mohan Adapa <sunil@medhas.org> | 2015-02-12 00:32:50 +0530 |
commit | 8ea8a960f437364f7819b9c90c73a5d4cfe3f1fd (patch) | |
tree | 104c65c544d56d0194e6ac516e0245deb3f640e4 | |
parent | e10edc5f3ef90c36785635baf744b5d8572a2517 (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-- | Makefile | 22 | ||||
-rwxr-xr-x | bin/mk_freedombox_image | 5 |
2 files changed, 27 insertions, 0 deletions
@@ -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. |