Name: meta-wpe
Owner: Resin.io
Description: Yocto/OE - Web Platform for Embedded (WPE)
Forked from: WebPlatformForEmbedded/meta-wpe
Created: 2017-04-03 07:56:40.0
Updated: 2017-04-03 07:56:42.0
Pushed: 2017-04-03 18:05:06.0
Size: 637
Language: BitBake
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
meta-wpe
is a meta layer for OpenEmbedded / Yocto environments. It provides the necessary recipes to build the WebPlatformforEmbedded components including the WPE WebKit browser.
Note: You only need this if you do not have an existing OpenEmbedded Yocto environment.
create a workspace for your yocto build:
$ mkdir -p rpi-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/rpi-yocto.xml
Fetch and sync all repositories:
$ repo sync
Initiate OE by invoking the oe init script:
$ source poky/oe-init-build-env rpi-ml-build
Add bb layers:
tbake-layers add-layer ../meta-raspberrypi
tbake-layers add-layer ../meta-wpe
tbake-layers add-layer ../meta-openembedded/meta-oe/
tbake-layers add-layer ../meta-openembedded/meta-multimedia/
Edit conf/local.conf
and set the target machine:
MACHINE = "raspberrypi3"
you can use raspberrypi2 as well if you own raspberrypi2 machine.
Set GCC to use version 5.4:
GCC_VERSION_forcevariable = "5.4%"
Note: GCC 6.x is supported but experimental at this stage. Mileage may vary.
Build WPE with Westeros Compositor:
$ bitbake westeros-wpe-image
To flash the sdimg on the sd card:
$ sudo dd if=tmp/deploy/images/raspberrypi3/westeros-wpe-image-raspberrypi3.rpi-sdimg of=/dev/sdX
Use 4.9 kernel (optional), edit conf/local.conf
and set:
PREFERRED_VERSION_linux-raspberrypi = "4.9%"
To build without Westeros/Wayland support on RPI (fullscreen EGL), edit conf/local.conf
and set:
BACKEND_rpi = "rpi"
RO_FEATURES_remove = "wayland"
Note WPE has many other view backends it can use. To select specific setting, like BCM Nexus or IntelCE edit your conf/local.conf
and set the WPE_BACKEND = foo
directly.
To build an initramfs image, edit conf/local.conf
and set:
RAMFS_IMAGE_BUNDLE_rpi = "1"
RAMFS_IMAGE_rpi = "wpe-initramfs-image"
EL_INITRAMFS = "-initramfs" BOOT_SPACE = "163840"
To install the initram fs, copy the zImage to the fat32 partition of your RPI.