Use the devtool add
command to add a new recipe
to the workspace layer.
The recipe you add should not exist -
devtool
creates it for you.
The source files the recipe uses should exist in an external
area.
The following example creates and adds a new recipe named
jackson
to the workspace layer.
The source code built by the recipes resides in
/home/scottrif/sources/jackson
:
$ devtool add jackson /home/scottrif/sources/jackson
devtool add --help
command.
If you add a recipe and the workspace layer does not exist, the command creates the layer and populates it as follows:
![]() |
README - Provides information on what is in workspace layer and how to
manage it.
appends - A directory that contains *.bbappend files, which point to
external source.
conf - A configuration directory that contains the layer.conf file.
recipes - A directory containing recipes. This directory contains a
folder for each directory added whose name matches that of the
added recipe. devtool places the recipe
.bb file
within that sub-directory.
Running devtool add
when the
workspace layer exists causes the tool to add the recipe
and append files into the existing workspace layer.
The .bbappend
file is created to point
to the external source tree.