Yocto
The Yocto Project (YP) is a popular open-source collaboration project focused on embedded Linux developers. In early versions of YP it could be problematic to get it running on Arch Linux. In later versions this is no longer the case, and hopefully in the future it will be even easier. For information about how to get it running on older version, there is a good guide here.
To use bitbake as a standalone tool, install bitbakeAUR. To edit bitbake recipes in vim, install bitbake-vimAUR.
For this guide the focus will be on YP Core 1.8 (Fido) and newer.
Installation
Install the git, diffstat, unzip, texinfo, python, chrpath, , , , , socat, cpio and packages.
Enable the multilib repository and install the group.
Clone the official git repository. In this example the morty branch is used.
$ git clone --branch morty git://git.yoctoproject.org/poky.git ~/poky
YP Core from Fido but before Morty
YP Core required :
$ mkdir -p ~/bin $ ln -s /usr/bin/python2 ~/bin/python $ ln -s /usr/bin/python2-config ~/bin/python-config $ export PATH=~/bin:$PATH
Build core-image-minimal
Time to build the core-image-minimal target. First place yourself in the directory and source the environment script. Then build it with bitbake:
$ cd ~/poky $ source oe-init-build-env build-qemux86
This will take some time to complete. For more details about yocto there is a Quick Start Guide.
Run core-image-minimal
To run this image in QEMU, start it with the runqemu command as follows: