diskimage-builder/elements/architecture-emulation-binaries
d.marlin 9b4d2a22e4 Fedora AArch64 (64-bit ARM) support in diskimage-builder
Add some checks for AArch64 to avoid the "Unknown architecture" or
"architecture not supported" messages, and allow builds to complete.

Change-Id: I89ba609abaeeb7019eb317cf13473929b2065230
2016-11-16 21:47:26 -05:00
..
cleanup.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
extra-data.d Fedora AArch64 (64-bit ARM) support in diskimage-builder 2016-11-16 21:47:26 -05:00
README.rst Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00

===============================
architecture-emulation-binaries
===============================

This element enables execution for different architectures

When building an image for an architecture that the host machine
can not execute, we need to chroot into the image to execute code,
and if the host architecture does not match, we need to emulate
the instructions.

This element does the following:

 * copies the binary file into chroot /usr/bin environment.
   Binary file is chosen based on host architecture and
   image architecture the user is trying to build.

   If an image we are building for an architecture is not the host
   architecture, install tools provided by qemu-user-static
   (which needs to be installed) to allow us to run commands
   inside the building image.

   This is tested on amd64/i386 architecture to build armhf and arm64
   ubuntu cloud images.