Skip to content
Wouter lucas van Boesschoten edited this page Dec 2, 2017 · 1 revision

This tutorial is meant for the 96Boards / Linaro. Specifically tested on Poplar boards.

Setup

Note: You only need this if you do not have an existing OpenEmbedded Yocto environment.

create a workspace for your yocto build:

$ mkdir -p yocto

Inside the newly created directory, initiate the repository

$ repo init -u ssh://git@github.com/WebPlatformForEmbedded/meta-wpe.git -b master -m tools/manifests/96boards-yocto.xml

Fetch and sync all repositories:

$ repo sync

Build

Initiate OE by invoking the oe init script:

$ source poky/oe-init-build-env wpe-build

Add bb layers:

$ bitbake-layers add-layer ../meta-96boards

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

$ bitbake-layers add-layer ../meta-openembedded/meta-multimedia

$ bitbake-layers add-layer ../meta-openembedded/meta-python

$ bitbake-layers add-layer ../meta-openembedded/meta-networking

$ bitbake-layers add-layer ../meta-wpe

Edit conf/local.conf and set the target machine (or any other 96board of choice): MACHINE = "poplar" Remove x11 from Distro features since we use wayland+westeros DISTRO_FEATURES_remove = "x11" Add opengl to Distro Features DISTRO_FEATURES_append = " opengl"

Example config:

MACHINE = "poplar"
#IMAGE_FEATURES += "tools-debug"
#IMAGE_FEATURES += "tools-tweaks"
#IMAGE_FEATURES += "dbg-pkgs"
# explicitly disable x11 and enable opengl
DISTRO_FEATURES_remove = "x11"
DISTRO_FEATURES_append = " opengl"
ENABLE_UART = "1"
HOSTTOOLS_NONFATAL_append = " ssh"
CONF_VERSION = "1"

To set a different GCC e.g. 6.3:

GCCVERSION = "6.%"

Build WPE with Westeros Compositor:

$ bitbake wpe-westeros-image

Install

To flash the sdimg on the sd card:

TODO

Clone this wiki locally