![VersaLogic Zebra VL-EPC-2701 User Manual Download Page 27](http://html1.mh-extra.com/html/versalogic/zebra-vl-epc-2701/zebra-vl-epc-2701_user-manual_1006790027.webp)
Creating a Simple Application
Zebra (VL-EPC-2701) Yocto Linux User Guide
27
Per response above, the
yocto-layer
tool sets up a complete layer and recipe directory
structure called
meta-helloworld in
the sources directory for developing a new application.
Please refer to Yocto documentation for detailed description of the structure. We only need to
make a few modifications to build our sample application.
2. Because we agreed to have an example recipe created, the
yocto-layer
tool also
copied a sample
helloworld.c
program. Edit the file
sources/meta-helloworld/
recipes-example/example/helloworld-0.1/helloworld.c
as needed.
3. Follow instructions in
meta-helloworld/README
, add
meta-helloworld
to the file
conf/bblayers.conf
in the build directory. The file should now look similar to the
following example:
$ cat conf/bblayers.conf
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE',
True)) + '/../..')}"
BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-poky \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-fsl-arm \
${BSPDIR}/sources/meta-fsl-arm-extra \
${BSPDIR}/sources/meta-fsl-demos \
${BSPDIR}/sources/meta-versalogic \
${BSPDIR}/sources/meta-helloworld \
"
##Freescale Yocto Project Release layer
BB= " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-bsp
"
BB= " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-sdk
"
BB= " ${BSPDIR}/sources/meta-browser "
BB= " ${BSPDIR}/sources/meta-openembedded/meta-gnome "
BB= " ${BSPDIR}/sources/meta-openembedded/meta-networking
"