Skip to main content
Version: kirkstone

Quickstart

This quickstart guide uses the same steps stated at Yocto Project Quick Build with additional steps to get an erlang runtime up and running on the target device.

Clone meta-erlang:

git clone https://github.com/meta-erlang/meta-erlang.git

Clone poky and checkout branch kirkstone:

git clone --branch kirkstone git://git.yoctoproject.org/poky

Clone meta-openembedded and checkout branch kirkstone:

git clone --branch kirkstone https://github.com/openembedded/meta-openembedded.git

Move to poky directory:

cd poky

Initialize the build environment:

source oe-init-build-env ../build

Add meta-oe and meta-erlang to conf/layer.conf:

bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-erlang

Add erlang package to IMAGE_INSTAL in conf/local.conf

echo 'IMAGE_INSTALL:append = " erlang"' >> conf/local.conf

Build the core-image-minimal:

bitbake core-image-minimal

Run the qemu:

runqemu qemux86

A new window will open. Login as root and call erl:

# erl
Erlang/OTP 21 [erts-10.1] [source] [smp:1:1] [ds:1:1:10] [async-threads:1]

Eshell V10.1 (abort with ^G)
1> erlang:system_info(cpu_topology).
[{processor,{logical,0}}]

The other sections of this guide shows additional steps to create your own erlang application and run inside a custom image.