dev-manual, bsp-guide: Scrubbed the yocto-layer usage section.
Added a note in the bsp-guide to point back to the main new section, which is in the dev-manual. Made some small edits to the main section in the dev-manual. (From yocto-docs rev: 4105c8edbdc531b2a941d7f7282325fae763f059) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b1ee347c26
commit
1c597ac036
|
@ -1161,6 +1161,15 @@
|
||||||
by the Yocto Project, as well as QEMU versions of the same.
|
by the Yocto Project, as well as QEMU versions of the same.
|
||||||
The default mode of the script's operation is to prompt you for information needed
|
The default mode of the script's operation is to prompt you for information needed
|
||||||
to generate the BSP layer.
|
to generate the BSP layer.
|
||||||
|
<note>
|
||||||
|
For information on creating a general layer that is not BSP-specific,
|
||||||
|
see the
|
||||||
|
"<ulink url='&YOCTO_DOCS_DEV_URL;#creating-a-general-layer-using-the-yocto-layer-script'>Creating a General Layer Using the yocto-layer Script</ulink>"
|
||||||
|
in the Yocto Project Development Manual.
|
||||||
|
</note>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
For the current set of BSPs, the script prompts you for various important
|
For the current set of BSPs, the script prompts you for various important
|
||||||
parameters such as:
|
parameters such as:
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
|
|
@ -623,7 +623,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You use the <filename>yocto-layer create</filename> sub-command
|
Use the <filename>yocto-layer create</filename> sub-command
|
||||||
to create a new general layer.
|
to create a new general layer.
|
||||||
In its simplest form, you can create a layer as follows:
|
In its simplest form, you can create a layer as follows:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
|
@ -636,18 +636,17 @@
|
||||||
<para>
|
<para>
|
||||||
As the <filename>yocto-layer create</filename> command runs,
|
As the <filename>yocto-layer create</filename> command runs,
|
||||||
default values for the prompts appear in brackets.
|
default values for the prompts appear in brackets.
|
||||||
Pressing enter without supplying anything on the command line
|
Pressing enter without supplying anything for the prompts
|
||||||
or pressing enter and providing an invalid response causes the
|
or pressing enter and providing an invalid response causes the
|
||||||
script to accept the default value.
|
script to accept the default value.
|
||||||
Once the script completes, the new layer
|
Once the script completes, the new layer
|
||||||
is created in the current working directory.
|
is created in the current working directory.
|
||||||
The script names the layer according to the string you provide
|
The script names the layer by prepending
|
||||||
and the prepended <filename>meta-</filename> string.
|
<filename>meta-</filename> to the name you provide.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If you choose to not generate a sample recipe or append file,
|
Minimally, the script creates the following within the layer:
|
||||||
the script creates the following within the layer:
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem><para><emphasis>The <filename>conf</filename>
|
<listitem><para><emphasis>The <filename>conf</filename>
|
||||||
directory:</emphasis>
|
directory:</emphasis>
|
||||||
|
@ -674,7 +673,7 @@
|
||||||
in a directory named <filename>recipes-example</filename>.
|
in a directory named <filename>recipes-example</filename>.
|
||||||
The script creates a <filename>.bb</filename> file and a
|
The script creates a <filename>.bb</filename> file and a
|
||||||
directory, which contains a sample
|
directory, which contains a sample
|
||||||
<filename>helloworld.c</filename>source file and along with
|
<filename>helloworld.c</filename> source file and along with
|
||||||
a sample patch file.
|
a sample patch file.
|
||||||
If you do not provide a recipe name, the script uses
|
If you do not provide a recipe name, the script uses
|
||||||
"example".
|
"example".
|
||||||
|
@ -721,7 +720,7 @@
|
||||||
"
|
"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Adding the layer to this file enables the build system to
|
Adding the layer to this file enables the build system to
|
||||||
the layer during the build.
|
locate the layer during the build.
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue