![u-blox EVK-W16 User Manual Download Page 33](http://html1.mh-extra.com/html/u-blox/evk-w16/evk-w16_user-manual_3074646033.webp)
EVK-W16 - User Guide
UBX-15017061 - R02
Advance Information
Overview of Yocto meta layers
Page 33 of 38
To build the program run:
Yocto will now index the new meta layer, find the bar recipe, and build the application. It is not included in the
final image though as it was not listed to be included. To add the program to the image, you need to add it to
the default image.
6.4.2
Overriding or modifying a meta layer or an image
To add a new application to the image, you can use overrides or modify an existing layer. If you are not the
maintainer of the layer, you should use an override layer.
To add the application
bar
from the example specified in the previous chapter, create and bbappend recipe to
include the application in the final image.
$ source ublox-init-build-env
$ bitbake bar
$ cat meta-foobar/recipes-example/example/bar-0.1/helloworld.c
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello World!\n");
return 0;
}
To build the new recipe, add the meta layer to the bblayers.conf:
$ vi build/conf/bblayers.conf
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/home/martin/projects/yocto/poky/meta \
/home/martin/projects/yocto/poky/meta-yocto \
/home/martin/projects/yocto/poky/meta-ti \
/home/martin/projects/yocto/poky/meta-openembedded/meta-oe \
/home/martin/projects/yocto/poky/meta-openembedded/meta-webserver \
/home/martin/projects/yocto/poky/meta-ublox \
/home/martin/projects/yocto/poky/meta-ublox-extras \
/home/martin/projects/yocto/poky/meta-foobar \ # << Add me
"
BBLAYERS_NON_REMOVABLE ?= " \
/home/martin/projects/yocto/poky/meta \
/home/martin/projects/yocto/poky/meta-yocto \
"