4.3.2.2. Adding a New Recipe to the Workspace Layer

Use the 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-2.0 to the workspace layer. The source code built by the recipes resides in /home/scottrif/sources/jackson:

     $ devtool add jackson-2.0 /home/scottrif/sources/jackson
                

Note

For complete syntax, use the 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.

     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.