How to create your own image

Template:ArticleMainWriter Template:ArticleApprovedVersion

1 Article purpose

The main goal of this article is to describe how to customize images to fit application requirements.
The idea is to add missing tools in the user file system.
Tools are related to kernel, network, audio, ui, ...

2 Prerequisites

The OpenSTLinux distribution delivery must be already installed.

3 Available ST images

3.1 OpenEmbedded images

The OpenEmbedded build system provides severals example images to satisfy different needs.
All details are explained Yocto Megamanual Reference Images
Some existing images are located here: <path of OpenSTLinux distribution delivery>/openembedded-core/meta/recipes-*/images/*.bb

The core-image-base can be a good starting points and a source or inspiration for creating user's own images:

├── meta  
│   ├── classes
│       ├── Template:Highlight2
│   ├── recipes-core
│       ├── images
│           ├── Template:Highlight2
└── [...]

In addition OpenSTLinux Distribution provides even more images, still derived from OpenEmbedded, and that can be used as example and for demonstration.

Warning.png ST images are not optimized in term of size or features.

3.2 Official OpenSTLinux images

  • st-image-weston : OpenSTLinux weston image with basic Wayland support (if enable in distro)

This image is located here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/

3.3 Others OpenSTLinux images

3.3.1 Supported images

  • st-image-core  : OpenSTLinux core image

This image is located here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-st/images/

├── recipes-st  
│   ├── images
│       ├── Template:Highlight2
│       ├──
│       ├── Template:Highlight2
│   ├── packagegroups
│       ├── Template:Highlight2
└── [...]

3.3.2 Images proposed as example-only

  • st-example-image-qt : ST example of image based on QT framework (require 'openstlinux-eglfs' distro)
  • st-example-image-x11 : ST example of image based on X11 (require 'openstlinux-x11' distro)
  • st-example-image-xfce : ST example of image based on XFCE framework (require 'openstlinux-x11' distro)

More images are available here : <path of OpenSTLinux distribution delivery>/meta-st/meta-st-openstlinux/recipes-samples/images/

├── recipes-samples  
│   ├── images
│       ├── Template:Highlight2
│       ├── Template:Highlight2
│       ├── Template:Highlight2
│       │ [...]
└── [...]

4 Customizing images

Several ways are explained and described here Yocto Megamanual Customizing Images

The way recommended and used by ST is to follow the method described in chapters Customizing Images Using Custom .bb Files and Customizing Images Using Custom Package Groups of Yocto Megamanual.