1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 00:39:46 +00:00

dev-manual: Updates to the devtool section.

Applied review edits from Paul Eggleton.

(From yocto-docs rev: 4815556b6c9f45ce230afede7cb3b2aadf0bef1c)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2015-03-30 13:36:27 -07:00
committed by Richard Purdie
parent 2f050af982
commit 3eabeef5d6
+32 -26
View File
@@ -1683,10 +1683,8 @@
This section describes two: This section describes two:
<itemizedlist> <itemizedlist>
<listitem><para><emphasis><filename>devtool</filename>:</emphasis> <listitem><para><emphasis><filename>devtool</filename>:</emphasis>
A set of tools and A set of tools to aid in working on the source code built by
enhancements put together by the Yocto Project team that the OpenEmbedded build system.
makes it easier for you to modify code that is external to
the Yocto Project.
Section Section
"<link linkend='using-devtool-in-your-workflow'>Using <filename>devtool</filename> in Your Workflow</link>" "<link linkend='using-devtool-in-your-workflow'>Using <filename>devtool</filename> in Your Workflow</link>"
describes this workflow. describes this workflow.
@@ -1739,9 +1737,6 @@
<title>Establish the Reference Image</title> <title>Establish the Reference Image</title>
<para> <para>
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 <filename>poky</filename> Git The steps to clone the <filename>poky</filename> Git
repository, build out an image, and test it using QEMU repository, build out an image, and test it using QEMU
are well documented as follows: are well documented as follows:
@@ -1786,29 +1781,37 @@
</para> </para>
<para> <para>
Another option is to use the <filename>devtool</filename> Another option is to use the
command. <filename>devtool modify</filename> command.
<filename>devtool</filename> makes use of a This command makes use of a "workspace" layer where much of
"workspace" layer where much of the transitional work the transitional work occurs, which is needed for setting up
occurs, which is needed for setting up Metadata used by the Metadata used by the OpenEmbedded build system that lets you
OpenEmbedded build system that lets you build your software. build your software.
Options exist using <filename>devtool</filename> that Options (i.e. "-x") exist using <filename>devtool</filename>
enable you to use the tool to extract source code. that enable you to use the tool to extract source code.
</para> </para>
</section> </section>
<section id='use-devtool-to-integrate-your-code-with-the-image'> <section id='use-devtool-to-integrate-your-code-with-the-image'>
<title>Use <filename>devtool</filename> to Integrate Your Code with the Image</title> <title>Use <filename>devtool add</filename> to Integrate Your Code with the Image</title>
<para> <para>
<filename>devtool</filename> automatically The <filename>devtool add</filename> command automatically
generates the needed Metadata that allows the OpenEmbedded generates the needed Metadata that allows the OpenEmbedded
build system to build your code into the image. build system to build your code into the image.
<note>
If a package or packages produced by the recipe on which
you are working are not already in
<ulink url='&YOCTO_DOCS_REF_URL;#var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></ulink>
for the image, you must add them.
The <filename>devtool add</filename> command does not
add them for you.
</note>
Use the following command form: Use the following command form:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ devtool add <replaceable>your-project-name</replaceable>&nbsp;<replaceable>path-to-source</replaceable> $ devtool add <replaceable>your-project-name</replaceable>&nbsp;<replaceable>path-to-source</replaceable>
</literallayout> </literallayout>
Running <filename>devtool</filename> modifies the Running <filename>devtool add</filename> modifies the
<filename>bblayers.conf</filename> that the <filename>bblayers.conf</filename> that the
OpenEmbedded build system uses to build an image. OpenEmbedded build system uses to build an image.
For more information on the <filename>bblayers.conf</filename>, For more information on the <filename>bblayers.conf</filename>,
@@ -1818,7 +1821,7 @@
</para> </para>
<para> <para>
Running <filename>devtool</filename> adds a new workspace Running <filename>devtool add</filename> adds a new workspace
layer to the <filename>bblayers.conf</filename> file that layer to the <filename>bblayers.conf</filename> file that
is based on your project's location: is based on your project's location:
<literallayout class='monospaced'> <literallayout class='monospaced'>
@@ -1856,7 +1859,7 @@
--> -->
<para> <para>
Running <filename>devtool</filename> automatically Running <filename>devtool add</filename> automatically
generates your recipe: generates your recipe:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ cat workspace/recipes/<replaceable>your-project-name</replaceable>/<replaceable>your-project-name</replaceable>.bb $ cat workspace/recipes/<replaceable>your-project-name</replaceable>/<replaceable>your-project-name</replaceable>.bb
@@ -1885,7 +1888,7 @@
</para> </para>
<para> <para>
Lastly, the <filename>devtool</filename> creates the Lastly, the <filename>devtool add</filename> command creates the
<filename>.bbappend</filename> file: <filename>.bbappend</filename> file:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ cat workspace/appends/<replaceable>your-project-name</replaceable>.bbappend $ cat workspace/appends/<replaceable>your-project-name</replaceable>.bbappend
@@ -1901,8 +1904,8 @@
<title>Build Your Project</title> <title>Build Your Project</title>
<para> <para>
You can use BitBake or <filename>devtool</filename> to build You can use BitBake or <filename>devtool build</filename> to
your modified project. build your modified project.
</para> </para>
<para> <para>
@@ -2063,7 +2066,8 @@
README - Provides information on what is in workspace layer and how to README - Provides information on what is in workspace layer and how to
manage it. 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. conf - A configuration directory that contains the layer.conf file.
@@ -2078,6 +2082,8 @@
Running <filename>devtool add</filename> when the Running <filename>devtool add</filename> when the
workspace layer exists causes the tool to add the recipe workspace layer exists causes the tool to add the recipe
and append files into the existing workspace layer. and append files into the existing workspace layer.
The <filename>.bbappend</filename> file is created to point
to the external source tree.
</para> </para>
</section> </section>
@@ -2192,8 +2198,8 @@
<para> <para>
Use the <filename>devtool update-recipe</filename> command to Use the <filename>devtool update-recipe</filename> command to
cause <filename>devtool</filename> to update your recipe with update your recipe with patches that reflect changes you make
patches that reflect changes you make to the source files. to the source files.
For example, if you know you are going to work on some For example, if you know you are going to work on some
code, you could first use the code, you could first use the
<link linkend='devtool-modifying-a-recipe'><filename>devtool modify</filename></link> <link linkend='devtool-modifying-a-recipe'><filename>devtool modify</filename></link>