Yocto on AWS - alan-mushi/meta-opencpn GitHub Wiki

# Yocto builds on Amazon Web Services

You don't have a powerful enough computer ? You find that your build time is way too long ? Then the alternative is to rent a better computer. The following steps are for AWS EC2 but may be reproduced on any other service provider.

I won't go through the whole creation and connection step for the virtual machine, please refer to the user manual for this.

## Choosing the distribution Yocto isn't compatible with every distributions, you will have to choose between a tested one (this will assure you that incompatibility between softwares are avoided). Refer to the quick start guide or to the poky.conf file. If you have the choice, use OpenSUSE 12.3 because it just work smoothly out of the box. But this isn't available on AWS (for now) so let's use Ubuntu server 12.04 LTS.

Choosing the machine specifications

AWS let you chose between a whole set of machine but don't 2 categories are interesting : General Purpose Instances and Compute Optimized Instances. The building process takes a lot of memory so don't take anything under 4 Go of RAM. I'm used to the c3.2xlarge instance because it handle the compilation with ease, but you can use another instance.

## Storage If you want to use a virtual machine over the long term, you won't certainly let it active all the time. The little trick is that all your data will be removed if you close the instance. To kept them across start/close you will need a little bit of persistent disk storage : EBS. You can instantiate the volume at the creation of the instance or in the "ELASTIC BLOCK STORE / volume" section. Then, you can attach the volume to a running instance. This storage is neither partitioned or mounted on your instance, you will have to do all the work (fdisk, mkfs and mount will do the trick).

And that's it, to set up the build environment follow the instructions in the Requirements page.

If you use an ubuntu server 12.03 LTS distribution, run those two commands :

sudo apt-get update
sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath libsdl1.2-dev xterm

And follow the rest of the Requirements page.


Back to Home : Home