diskimage-builder/diskimage_builder/elements/architecture-emulation-binaries
Ian Wienand 448a2602fe Merge remote-tracking branch 'origin/master' into merge-branch
Change-Id: I05cc51c699008018d557ed3874d71af26fd60240
2016-11-29 07:43:46 +11:00
..
cleanup.d Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
extra-data.d Merge remote-tracking branch 'origin/master' into merge-branch 2016-11-29 07:43:46 +11:00
README.rst Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07: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.