January 2018
Intermediate to advanced
456 pages
12h 49m
English
An example of a small image that does not include the core image class and can be used as the base for a bottom-up root filesystem image with reduced size, recipes-core/images/image-small.bb, is shown next:
DESCRIPTION = "Minimal console-only image."
IMAGE_INSTALL= "\
base-files \
base-passwd \
busybox \
sysvinit \
initscripts \
"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit image
IMAGE_ROOTFS_SIZE = "8192"
This recipe produces a root filesystem of 4.8 MB. You can go even smaller if you use the poky-tiny distribution by adding the following to your conf/local.conf file:
DISTRO = "poky-tiny"
The poky-tiny distribution makes a series of size optimizations that may restrict the set of packages you can include in your image. ...
Read now
Unlock full access