1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

brief-yoctoprojectqs: Added reviewer feedback

Softened the opening paragraph so it was not introducing any special
terms right off the bat.  Renamed the section on the hardware layer
to configuring the build for specific hardware.  Put in a link to
"build host" and used that term throughout.

(From yocto-docs rev: a324cb2f9c499dc8d68d1d87265930c308cbebb7)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2018-04-24 14:25:46 -07:00
committed by Richard Purdie
parent 9a30cafe7a
commit 615e0e83de
@@ -33,8 +33,8 @@
Welcome! Welcome!
This short document steps you through the process for a typical This short document steps you through the process for a typical
image build using the Yocto Project. image build using the Yocto Project.
The document also introduces how to add a machine layer and a The document also introduces how to configure a build for specific
general layer to your Yocto Project development environment. hardware.
You will use Yocto Project to build a reference embedded OS You will use Yocto Project to build a reference embedded OS
called Poky. called Poky.
<note> <note>
@@ -62,7 +62,9 @@
<title>Compatible Linux Distribution</title> <title>Compatible Linux Distribution</title>
<para> <para>
Make sure your build system meets the following requirements: Make sure your
<ulink url='&YOCTO_DOCS_REF_URL;#hardware-build-system-term'>build host</ulink>
meets the following requirements:
<itemizedlist> <itemizedlist>
<listitem><para> <listitem><para>
50 Gbytes of free disk space 50 Gbytes of free disk space
@@ -98,11 +100,11 @@
</section> </section>
<section id='brief-build-system-packages'> <section id='brief-build-system-packages'>
<title>Build System Packages</title> <title>Build Host Packages</title>
<para> <para>
You must install essential host packages on your You must install essential host packages on your
development host. build host.
The following command installs the host packages based on an The following command installs the host packages based on an
Ubuntu distribution: Ubuntu distribution:
<note> <note>
@@ -123,7 +125,7 @@
<para> <para>
Once you complete the setup instructions for your machine, Once you complete the setup instructions for your machine,
you need to get a copy of the Poky repository on your build you need to get a copy of the Poky repository on your build
system. host.
Use the following commands to clone the Poky Use the following commands to clone the Poky
repository and then checkout the &DISTRO_REL_TAG; release: repository and then checkout the &DISTRO_REL_TAG; release:
<literallayout class='monospaced'> <literallayout class='monospaced'>
@@ -274,27 +276,26 @@
</para> </para>
</section> </section>
<section id='adding-a-hardware-layer'> <section id='customizing-your-build-for-specific-hardware'>
<title>Adding a Hardware Layer</title> <title>Customizing Your Build for Specific Hardware</title>
<para> <para>
So far, all you have done is quickly built an image suitable So far, all you have done is quickly built an image suitable
for emulation only. for emulation only.
This section shows you how you can add a hardware layer into This section shows you how to customize your build for specific
the Yocto Project development environment. hardware by adding a hardware layer into the Yocto Project
development environment.
</para> </para>
<para> <para>
A hardware layer provides the metadata to support specific In general, layers are repositories that contain related sets of
hardware. instructions and configurations that tell the OpenEmbedded build
In general, layers are repositories that contain related sets system what to do.
of instructions and configurations that tell the OpenEmbedded Isolating related metadata into functionally specific layers
build system what to do. facilitates modular development and makes it easier to reuse the
Isolating related metadata into layers facilitates modular layer metadata.
development.
<note> <note>
By convention, hardware layers (i.e. Board Support Packages) By convention, layer names start with the string "meta-".
start with the string "meta-".
</note> </note>
</para> </para>
@@ -327,7 +328,8 @@
Resolving deltas: 100% (13385/13385), done. Resolving deltas: 100% (13385/13385), done.
Checking connectivity... done. Checking connectivity... done.
</literallayout> </literallayout>
The hardware layer now exists inside as The hardware layer now exists with other layers inside
the Poky reference repository on your build host as
<filename>meta-altera</filename> and contains all the <filename>meta-altera</filename> and contains all the
metadata needed to support hardware from Altera, which metadata needed to support hardware from Altera, which
is owned by Intel. is owned by Intel.
@@ -340,7 +342,8 @@
specifies the machine for the build. specifies the machine for the build.
For this example, set the <filename>MACHINE</filename> For this example, set the <filename>MACHINE</filename>
variable to "cyclone5". variable to "cyclone5".
The build system will use the machine configurations here: The OpenEmbedded build system uses the machine
configurations here:
<ulink url='https://github.com/kraj/meta-altera/blob/master/conf/machine/cyclone5.conf'></ulink>. <ulink url='https://github.com/kraj/meta-altera/blob/master/conf/machine/cyclone5.conf'></ulink>.
<note> <note>
See the See the
@@ -358,7 +361,7 @@
<filename>conf</filename> directory.</para> <filename>conf</filename> directory.</para>
<para>Use the <filename>bitbake-layers add-layer</filename> <para>Use the <filename>bitbake-layers add-layer</filename>
command: command to add the layer to the configuration file:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ cd ~/poky/build $ cd ~/poky/build
$ bitbake-layers add-layer ../meta-altera $ bitbake-layers add-layer ../meta-altera
@@ -374,7 +377,7 @@
Completing these steps has added the Completing these steps has added the
<filename>meta-altera</filename> layer to your Yocto Project <filename>meta-altera</filename> layer to your Yocto Project
development environment and configured it to build for the development environment and configured it to build for the
"imx6sxsabresd" machine. "cyclone5" machine.
<note> <note>
The previous steps are for demonstration purposes only. The previous steps are for demonstration purposes only.
If you were to attempt to build an image for the If you were to attempt to build an image for the
@@ -384,13 +387,13 @@
</para> </para>
</section> </section>
<section id='adding-your-own-layer'> <section id='creating-your-own-general-layer'>
<title>Adding Your Own Layer</title> <title>Creating Your Own General Layer</title>
<para> <para>
Maybe you have an application or specific set of behaviors you Maybe you have an application or specific set of behaviors you
need to isolate. need to isolate.
You can create your own layer using the You can create your own general layer using the
<filename>bitbake-layers create-layer</filename> command. <filename>bitbake-layers create-layer</filename> command.
The tool automates layer creation by setting up a The tool automates layer creation by setting up a
subdirectory with a <filename>layer.conf</filename> subdirectory with a <filename>layer.conf</filename>