Skip to content
Thibault Guittet edited this page Dec 30, 2013 · 17 revisions

This wiki is a tutorial to use yocto in order to build a GNU/Linux distribution with Wayland (instead of x11) and OpenCPN.

This wiki is specific for a "target" : Lenovo ThinkPad X230 Tablet.

If you have not a clue about what is yocto and you still want to continue the adventure, you will have some homework to do :

For the rest of the project i won't discuss yocto's concepts (layers, BSP...). Thus i assume that you understand those concepts. If you feel uncomfortable about yocto's notions, read the quick start guide.

You have to know that the build times can be very long and run yocto builds on a power-full computer can spare you big time ! If you don't have those kind of computers you can either let your computer run for a long period of time or rent a virtual appliance (on AWS for example).

The following commands have been realized on a Dell Optiplex 990 with a i7 vPro CPU. For each build command the time used to run the command will be displayed (this is done using the time program). This should give you an idea of how many coffees you will have to drink while you will wait for the command to complete...

Let's dive in

Ready ? Open up a terminal and let's get started.

Walk-through building

If you don't have a good computer you may need to read : Yocto on Amazon Web Services

  1. Requirements
  2. Building the image

Explanations on the meta-opencpn

  1. Creating an image recipe
  2. Adding appropriate driver
  3. gtk3 window decorations in wayland
  4. gpsd support
  5. wxwidgets gtk3

Patches for OpenCPN/wxWidgets on Wayland

  1. wxwidgets window resizing
  2. wxwidgets X11 direct calls
  3. opencpn GL direct calls

Appendix