4.3.2.4. Modifying a Recipe

Use the devtool modify command to begin modifying the source of an existing recipe. This command is very similar to the add command except that it does not physically create the recipe in the workspace layer because the recipe already exists in an another layer.

The devtool modify command extracts the source for a recipe, sets it up as a Git repository if the source had not already been fetched from Git, checks out a branch for development, and applies any patches from the recipe as commits on top. You can use the following command to checkout the source files:

     $ devtool modify -x recipe path-to-source
                

Using the above command form, the default development branch would be "devtool".

If you want to name a development branch, use the -b option with the -x option:

     $ devtool modify -x -b branch recipe path-to-source
                

Note

For complete syntax, use the devtool modify --help command.