(adds tip for how to list all image recipes)
(Adds list of notable standard images)
Line 8: Line 8:
== Images ==
== Images ==


=== Standard images ===
Images are defined in recipe files. In order to separate them from package recipes, there is a convention to put image recipes into a folder named ''images''. Making use of this, we can list all images defined by all layers via
Images are defined in recipe files. In order to separate them from package recipes, there is a convention to put image recipes into a folder named ''images''. Making use of this, we can list all images defined by all layers via
<pre class="terminal">
<pre class="terminal">
cd poky
ls meta*/recipes*/images/*.bb
ls meta*/recipes*/images/*.bb
</pre>
</pre>
<br />
<br />
The following standard images are defined in the ''meta'' layer:
{| style="padding: 10px;"
! style="width: 20px" | || ||
|-
| || ''core-image-minimal'' || small image that just boots the target device
|-
| || ''core-image-minimal-dev'' || ''core-image-minimal'' with headers and libraries allowing development work
|-
| || style="padding-right: 10px" | ''core-image-minimal-initramfs'' || ''core-image-minimal'' with kernel support for in-RAM filesystem
|-
| || '''core-image-base''' || '''console-only system fully supporting the target hardware'''
|-
| || ''core-image-full-cmdline'' || console-only image that includes many system tools
|-
| || ''core-image-x11'' ||  image with basic X11 and a terminal
|-
|}


== Using devtool ==
== Using devtool ==


Use '''devtool''' to make changes to an existing recipe and automatically generate an append recipe from those changes.
Use '''devtool''' to make changes to an existing recipe and automatically generate an append recipe from those changes.

Revision as of 2022-11-06T13:02:42

Prerequisites

sudo apt install gcc g++ \
  python3-distutils python-is-python3


Images

Standard images

Images are defined in recipe files. In order to separate them from package recipes, there is a convention to put image recipes into a folder named images. Making use of this, we can list all images defined by all layers via

cd poky
ls meta*/recipes*/images/*.bb


The following standard images are defined in the meta layer:

core-image-minimal small image that just boots the target device
core-image-minimal-dev core-image-minimal with headers and libraries allowing development work
core-image-minimal-initramfs core-image-minimal with kernel support for in-RAM filesystem
core-image-base console-only system fully supporting the target hardware
core-image-full-cmdline console-only image that includes many system tools
core-image-x11 image with basic X11 and a terminal

Using devtool

Use devtool to make changes to an existing recipe and automatically generate an append recipe from those changes.


Debug data: