From 3eabeef5d6a60bd6b7303b01aaa9164f1fe79dbb Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 30 Mar 2015 13:36:27 -0700 Subject: dev-manual: Updates to the devtool section. Applied review edits from Paul Eggleton. (From yocto-docs rev: 4815556b6c9f45ce230afede7cb3b2aadf0bef1c) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-model.xml | 58 +++++++++++++++------------ 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/documentation/dev-manual/dev-manual-model.xml b/documentation/dev-manual/dev-manual-model.xml index aa52c2c..a62c67d 100644 --- a/documentation/dev-manual/dev-manual-model.xml +++ b/documentation/dev-manual/dev-manual-model.xml @@ -1683,10 +1683,8 @@ This section describes two: devtool: - A set of tools and - enhancements put together by the Yocto Project team that - makes it easier for you to modify code that is external to - the Yocto Project. + A set of tools to aid in working on the source code built by + the OpenEmbedded build system. Section "Using devtool in Your Workflow" describes this workflow. @@ -1739,9 +1737,6 @@ Establish the Reference Image - Local repositories for both the Yocto Project and your - project must exist in addition to the image built by - the OpenEmbedded build system. The steps to clone the poky Git repository, build out an image, and test it using QEMU are well documented as follows: @@ -1786,29 +1781,37 @@ - Another option is to use the devtool - command. - devtool makes use of a - "workspace" layer where much of the transitional work - occurs, which is needed for setting up Metadata used by the - OpenEmbedded build system that lets you build your software. - Options exist using devtool that - enable you to use the tool to extract source code. + Another option is to use the + devtool modify command. + This command makes use of a "workspace" layer where much of + the transitional work occurs, which is needed for setting up + Metadata used by the OpenEmbedded build system that lets you + build your software. + Options (i.e. "-x") exist using devtool + that enable you to use the tool to extract source code.
- Use <filename>devtool</filename> to Integrate Your Code with the Image + Use <filename>devtool add</filename> to Integrate Your Code with the Image - devtool automatically + The devtool add command automatically generates the needed Metadata that allows the OpenEmbedded build system to build your code into the image. + + If a package or packages produced by the recipe on which + you are working are not already in + IMAGE_INSTALL + for the image, you must add them. + The devtool add command does not + add them for you. + Use the following command form: $ devtool add your-project-name path-to-source - Running devtool modifies the + Running devtool add modifies the bblayers.conf that the OpenEmbedded build system uses to build an image. For more information on the bblayers.conf, @@ -1818,7 +1821,7 @@ - Running devtool adds a new workspace + Running devtool add adds a new workspace layer to the bblayers.conf file that is based on your project's location: @@ -1856,7 +1859,7 @@ --> - Running devtool automatically + Running devtool add automatically generates your recipe: $ cat workspace/recipes/your-project-name/your-project-name.bb @@ -1885,7 +1888,7 @@ - Lastly, the devtool creates the + Lastly, the devtool add command creates the .bbappend file: $ cat workspace/appends/your-project-name.bbappend @@ -1901,8 +1904,8 @@ Build Your Project - You can use BitBake or devtool to build - your modified project. + You can use BitBake or devtool build to + build your modified project. @@ -2063,7 +2066,8 @@ README - Provides information on what is in workspace layer and how to manage it. - appends - A directory that contains *.bbappend files. + appends - A directory that contains *.bbappend files, which point to + external source. conf - A configuration directory that contains the layer.conf file. @@ -2078,6 +2082,8 @@ 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.
@@ -2192,8 +2198,8 @@ Use the devtool update-recipe command to - cause devtool to update your recipe with - patches that reflect changes you make to the source files. + update your recipe with patches that reflect changes you make + to the source files. For example, if you know you are going to work on some code, you could first use the devtool modify -- cgit v1.1