bsp-guide: Applied the <replaceable> tag as needed.
(From yocto-docs rev: 6f8f374f3f7f70082c7bc45c1715324214dc2099) 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
cb5c70dd35
commit
632faca3b8
|
@ -37,7 +37,7 @@
|
||||||
Although not a strict requirement, layers in the Yocto Project use the
|
Although not a strict requirement, layers in the Yocto Project use the
|
||||||
following well established naming convention:
|
following well established naming convention:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>
|
meta-<replaceable>bsp_name</replaceable>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
The string "meta-" is prepended to the machine or platform name, which is
|
The string "meta-" is prepended to the machine or platform name, which is
|
||||||
"bsp_name" in the above form.
|
"bsp_name" in the above form.
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
<ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-repositories'>Yocto Project Source Repositories</ulink>
|
<ulink url='&YOCTO_DOCS_DEV_URL;#yocto-project-repositories'>Yocto Project Source Repositories</ulink>
|
||||||
through a web interface at
|
through a web interface at
|
||||||
<ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi'></ulink>.
|
<ulink url='&YOCTO_GIT_URL;/cgit/cgit.cgi'></ulink>.
|
||||||
If you go to that interface you will find near the bottom of the list
|
If you go to that interface, you will find near the bottom of the list
|
||||||
under "Yocto Metadata Layers" several BSP layers all of which are
|
under "Yocto Metadata Layers" several BSP layers all of which are
|
||||||
supported by the Yocto Project (e.g. <filename>meta-minnow</filename>,
|
supported by the Yocto Project (e.g. <filename>meta-minnow</filename>,
|
||||||
<filename>meta-raspberrypi</filename>, and
|
<filename>meta-raspberrypi</filename>, and
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The layer's base directory (<filename>meta-<bsp_name></filename>) is the root
|
The layer's base directory (<filename>meta-<replaceable>bsp_name</replaceable></filename>) is the root
|
||||||
of the BSP Layer.
|
of the BSP Layer.
|
||||||
This root is what you add to the
|
This root is what you add to the
|
||||||
<ulink url='&YOCTO_DOCS_REF_URL;#var-BBLAYERS'><filename>BBLAYERS</filename></ulink>
|
<ulink url='&YOCTO_DOCS_REF_URL;#var-BBLAYERS'><filename>BBLAYERS</filename></ulink>
|
||||||
|
@ -175,17 +175,17 @@
|
||||||
for specific BSPs could differ.
|
for specific BSPs could differ.
|
||||||
|
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/
|
meta-<replaceable>bsp_name</replaceable>/
|
||||||
meta-<bsp_name>/<bsp_license_file>
|
meta-<replaceable>bsp_name</replaceable>/<replaceable>bsp_license_file</replaceable>
|
||||||
meta-<bsp_name>/README
|
meta-<replaceable>bsp_name</replaceable>/README
|
||||||
meta-<bsp_name>/README.sources
|
meta-<replaceable>bsp_name</replaceable>/README.sources
|
||||||
meta-<bsp_name>/binary/<bootable_images>
|
meta-<replaceable>bsp_name</replaceable>/binary/<replaceable>bootable_images</replaceable>
|
||||||
meta-<bsp_name>/conf/layer.conf
|
meta-<replaceable>bsp_name</replaceable>/conf/layer.conf
|
||||||
meta-<bsp_name>/conf/machine/*.conf
|
meta-<replaceable>bsp_name</replaceable>/conf/machine/*.conf
|
||||||
meta-<bsp_name>/recipes-bsp/*
|
meta-<replaceable>bsp_name</replaceable>/recipes-bsp/*
|
||||||
meta-<bsp_name>/recipes-core/*
|
meta-<replaceable>bsp_name</replaceable>/recipes-core/*
|
||||||
meta-<bsp_name>/recipes-graphics/*
|
meta-<replaceable>bsp_name</replaceable>/recipes-graphics/*
|
||||||
meta-<bsp_name>/recipes-kernel/linux/linux-yocto_<kernel_rev>.bbappend
|
meta-<replaceable>bsp_name</replaceable>/recipes-kernel/linux/linux-yocto_<replaceable>kernel_rev</replaceable>.bbappend
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -221,7 +221,6 @@
|
||||||
meta-crownbay/recipes-kernel/linux/linux-yocto-dev.bbappend
|
meta-crownbay/recipes-kernel/linux/linux-yocto-dev.bbappend
|
||||||
meta-crownbay/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend
|
meta-crownbay/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend
|
||||||
meta-crownbay/recipes-kernel/linux/linux-yocto_3.10.bbappend
|
meta-crownbay/recipes-kernel/linux/linux-yocto_3.10.bbappend
|
||||||
meta-crownbay/recipes-kernel/linux/linux-yocto_3.14.bbappend
|
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -235,7 +234,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/<bsp_license_file>
|
meta-<replaceable>bsp_name</replaceable>/<replaceable>bsp_license_file</replaceable>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -257,7 +256,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find this file in the BSP Layer at:
|
You can find this file in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/README
|
meta-<replaceable>bsp_name</replaceable>/README
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -281,7 +280,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find this file in the BSP Layer at:
|
You can find this file in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/README.sources
|
meta-<replaceable>bsp_name</replaceable>/README.sources
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -300,7 +299,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/binary/<bootable_images>
|
meta-<replaceable>bsp_name</replaceable>/binary/<replaceable>bootable_images</replaceable>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -316,7 +315,7 @@
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The exact types of binaries present are highly hardware-dependent.
|
The exact types of binaries present are highly hardware-dependent.
|
||||||
However, a README file should be present in the BSP Layer that explains how to use
|
However, a <filename>README</filename> file should be present in the BSP Layer that explains how to use
|
||||||
the kernels and images with the target hardware.
|
the kernels and images with the target hardware.
|
||||||
If pre-built binaries are present, source code to meet licensing requirements must also
|
If pre-built binaries are present, source code to meet licensing requirements must also
|
||||||
exist in some form.
|
exist in some form.
|
||||||
|
@ -328,7 +327,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find this file in the BSP Layer at:
|
You can find this file in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/conf/layer.conf
|
meta-<replaceable>bsp_name</replaceable>/conf/layer.conf
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -338,9 +337,9 @@
|
||||||
contents of the layer, and contains information about how the build
|
contents of the layer, and contains information about how the build
|
||||||
system should use it.
|
system should use it.
|
||||||
Generally, a standard boilerplate file such as the following works.
|
Generally, a standard boilerplate file such as the following works.
|
||||||
In the following example, you would replace "<filename>bsp</filename>" and
|
In the following example, you would replace "<replaceable>bsp</replaceable>" and
|
||||||
"<filename>_bsp</filename>" with the actual name
|
"<replaceable>_bsp</replaceable>" with the actual name
|
||||||
of the BSP (i.e. <filename><bsp_name></filename> from the example template).
|
of the BSP (i.e. <replaceable>bsp_name</replaceable> from the example template).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -381,7 +380,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/conf/machine/*.conf
|
meta-<replaceable>bsp_name</replaceable>/conf/machine/*.conf
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -441,7 +440,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/recipes-bsp/*
|
meta-<replaceable>bsp_name</replaceable>/recipes-bsp/*
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -478,7 +477,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/recipes-graphics/*
|
meta-<replaceable>bsp_name</replaceable>/recipes-graphics/*
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -502,7 +501,7 @@
|
||||||
<para>
|
<para>
|
||||||
You can find these files in the BSP Layer at:
|
You can find these files in the BSP Layer at:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
meta-<bsp_name>/recipes-kernel/linux/linux-yocto_*.bbappend
|
meta-<replaceable>bsp_name</replaceable>/recipes-kernel/linux/linux-yocto_*.bbappend
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -515,13 +514,13 @@
|
||||||
at <filename>meta/recipes-kernel/linux</filename>.
|
at <filename>meta/recipes-kernel/linux</filename>.
|
||||||
You can append your specific changes to the kernel recipe by using a
|
You can append your specific changes to the kernel recipe by using a
|
||||||
similarly named append file, which is located in the BSP Layer (e.g.
|
similarly named append file, which is located in the BSP Layer (e.g.
|
||||||
the <filename>meta-<bsp_name>/recipes-kernel/linux</filename> directory).
|
the <filename>meta-<replaceable>bsp_name</replaceable>/recipes-kernel/linux</filename> directory).
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Suppose you are using the <filename>linux-yocto_3.10.bb</filename> recipe to build
|
Suppose you are using the <filename>linux-yocto_3.10.bb</filename> recipe to build
|
||||||
the kernel.
|
the kernel.
|
||||||
In other words, you have selected the kernel in your
|
In other words, you have selected the kernel in your
|
||||||
<filename><bsp_name>.conf</filename> file by adding these types
|
<replaceable>bsp_name</replaceable><filename>.conf</filename> file by adding these types
|
||||||
of statements:
|
of statements:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
|
||||||
|
@ -530,7 +529,7 @@
|
||||||
<note>
|
<note>
|
||||||
When the preferred provider is assumed by default, the
|
When the preferred provider is assumed by default, the
|
||||||
<filename>PREFERRED_PROVIDER</filename> statement does not appear in the
|
<filename>PREFERRED_PROVIDER</filename> statement does not appear in the
|
||||||
<filename><bsp_name>.conf</filename> file.
|
<replaceable>bsp_name</replaceable><filename>.conf</filename> file.
|
||||||
</note>
|
</note>
|
||||||
You would use the <filename>linux-yocto_3.10.bbappend</filename> file to append
|
You would use the <filename>linux-yocto_3.10.bbappend</filename> file to append
|
||||||
specific BSP settings to the kernel, thus configuring the kernel for your particular BSP.
|
specific BSP settings to the kernel, thus configuring the kernel for your particular BSP.
|
||||||
|
@ -752,7 +751,7 @@
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para><emphasis>License File:</emphasis>
|
<listitem><para><emphasis>License File:</emphasis>
|
||||||
You must include a license file in the
|
You must include a license file in the
|
||||||
<filename>meta-<bsp_name></filename> directory.
|
<filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
This license covers the BSP Metadata as a whole.
|
This license covers the BSP Metadata as a whole.
|
||||||
You must specify which license to use since there is no
|
You must specify which license to use since there is no
|
||||||
default license if one is not specified.
|
default license if one is not specified.
|
||||||
|
@ -762,7 +761,7 @@
|
||||||
as an example.</para></listitem>
|
as an example.</para></listitem>
|
||||||
<listitem><para><emphasis>README File:</emphasis>
|
<listitem><para><emphasis>README File:</emphasis>
|
||||||
You must include a <filename>README</filename> file in the
|
You must include a <filename>README</filename> file in the
|
||||||
<filename>meta-<bsp_name></filename> directory.
|
<filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
See the
|
See the
|
||||||
<ulink url='&YOCTO_GIT_URL;/cgit.cgi/meta-intel/tree/meta-fri2/README'><filename>README</filename></ulink>
|
<ulink url='&YOCTO_GIT_URL;/cgit.cgi/meta-intel/tree/meta-fri2/README'><filename>README</filename></ulink>
|
||||||
file for the Fish River Island 2 BSP in the <filename>meta-fri2</filename> BSP layer
|
file for the Fish River Island 2 BSP in the <filename>meta-fri2</filename> BSP layer
|
||||||
|
@ -804,7 +803,7 @@
|
||||||
</itemizedlist></para></listitem>
|
</itemizedlist></para></listitem>
|
||||||
<listitem><para><emphasis>README.sources File:</emphasis>
|
<listitem><para><emphasis>README.sources File:</emphasis>
|
||||||
You must include a <filename>README.sources</filename> in the
|
You must include a <filename>README.sources</filename> in the
|
||||||
<filename>meta-<bsp_name></filename> directory.
|
<filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
This file specifies exactly where you can find the sources used to
|
This file specifies exactly where you can find the sources used to
|
||||||
generate the binary images contained in the
|
generate the binary images contained in the
|
||||||
<filename>binary</filename> directory, if present.
|
<filename>binary</filename> directory, if present.
|
||||||
|
@ -814,12 +813,13 @@
|
||||||
as an example.</para></listitem>
|
as an example.</para></listitem>
|
||||||
<listitem><para><emphasis>Layer Configuration File:</emphasis>
|
<listitem><para><emphasis>Layer Configuration File:</emphasis>
|
||||||
You must include a <filename>conf/layer.conf</filename> in the
|
You must include a <filename>conf/layer.conf</filename> in the
|
||||||
<filename>meta-<bsp_name></filename> directory.
|
<filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
This file identifies the <filename>meta-<bsp_name></filename>
|
This file identifies the <filename>meta-<replaceable>bsp_name</replaceable></filename>
|
||||||
BSP layer as a layer to the build system.</para></listitem>
|
BSP layer as a layer to the build system.</para></listitem>
|
||||||
<listitem><para><emphasis>Machine Configuration File:</emphasis>
|
<listitem><para><emphasis>Machine Configuration File:</emphasis>
|
||||||
You must include one or more <filename>conf/machine/<bsp_name>.conf</filename>
|
You must include one or more
|
||||||
files in the <filename>meta-<bsp_name></filename> directory.
|
<filename>conf/machine/<replaceable>bsp_name</replaceable>.conf</filename>
|
||||||
|
files in the <filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
These configuration files define machine targets that can be built
|
These configuration files define machine targets that can be built
|
||||||
using the BSP layer.
|
using the BSP layer.
|
||||||
Multiple machine configuration files define variations of machine
|
Multiple machine configuration files define variations of machine
|
||||||
|
@ -866,7 +866,7 @@
|
||||||
filesystems meant to allow users to boot the BSP for evaluation
|
filesystems meant to allow users to boot the BSP for evaluation
|
||||||
purposes, you should put the images and artifacts within a
|
purposes, you should put the images and artifacts within a
|
||||||
<filename>binary/</filename> subdirectory located in the
|
<filename>binary/</filename> subdirectory located in the
|
||||||
<filename>meta-<bsp_name></filename> directory.
|
<filename>meta-<replaceable>bsp_name</replaceable></filename> directory.
|
||||||
<note>If you do include a bootable image as part of the BSP and the image
|
<note>If you do include a bootable image as part of the BSP and the image
|
||||||
was built by software covered by the GPL or other open source licenses,
|
was built by software covered by the GPL or other open source licenses,
|
||||||
it is your responsibility to understand
|
it is your responsibility to understand
|
||||||
|
@ -1100,7 +1100,7 @@
|
||||||
Consequently, to use the scripts, you must <filename>source</filename> the
|
Consequently, to use the scripts, you must <filename>source</filename> the
|
||||||
environment just as you would when invoking a build:
|
environment just as you would when invoking a build:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ source oe-init-build-env [build_dir]
|
$ source oe-init-build-env <replaceable>build_dir</replaceable>
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue