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

bsp-guide: Edits to "Preparing Your Build Host to Work with BSP Layers"

Applied some edits to make the section more up-to-date.  Dumped
minnow as a BSP example for raspberrypi.

(From yocto-docs rev: a40515bad28d07d736e1ddd1832c19b074749d53)

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-03-07 16:24:26 -08:00
committed by Richard Purdie
parent 4c4076add1
commit ae64a41af5
+30 -20
View File
@@ -162,7 +162,7 @@
to work with BSP layers. to work with BSP layers.
Once you have the host set up, you can create the layer Once you have the host set up, you can create the layer
as described in the as described in the
"<link linkend='creating-a-new-bsp-layer-using-the-bitbake-layers-script'>Creating a new BSP Layer Using the yocto-bsp Script</link>" "<link linkend='creating-a-new-bsp-layer-using-the-bitbake-layers-script'>Creating a new BSP Layer Using the <filename>bitbake-layers</filename> Script</link>"
section. section.
<note> <note>
For structural information on BSPs, see the For structural information on BSPs, see the
@@ -188,7 +188,7 @@
"<ulink url='&YOCTO_DOCS_DEV_URL;#cloning-the-poky-repository'>Cloning the <filename>poky</filename> Repository</ulink>" "<ulink url='&YOCTO_DOCS_DEV_URL;#cloning-the-poky-repository'>Cloning the <filename>poky</filename> Repository</ulink>"
and possibly the and possibly the
"<ulink url='&YOCTO_DOCS_DEV_URL;#checking-out-by-branch-in-poky'>Checking Out by Branch in Poky</ulink>" "<ulink url='&YOCTO_DOCS_DEV_URL;#checking-out-by-branch-in-poky'>Checking Out by Branch in Poky</ulink>"
and or
"<ulink url='&YOCTO_DOCS_DEV_URL;#checkout-out-by-tag-in-poky'>Checking Out by Tag in Poky</ulink>" "<ulink url='&YOCTO_DOCS_DEV_URL;#checkout-out-by-tag-in-poky'>Checking Out by Tag in Poky</ulink>"
sections all in the Yocto Project Development Tasks Manual for sections all in the Yocto Project Development Tasks Manual for
information on how to clone the <filename>poky</filename> information on how to clone the <filename>poky</filename>
@@ -221,17 +221,20 @@
inside the inside the
<ulink url='&YOCTO_DOCS_REF_URL;#source-directory'>Source Directory</ulink> <ulink url='&YOCTO_DOCS_REF_URL;#source-directory'>Source Directory</ulink>
(e.g. <filename>poky</filename>). (e.g. <filename>poky</filename>).
<literallayout class='monospaced'>
$ cd /home/<replaceable>you</replaceable>/poky
</literallayout>
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
<emphasis>Clone the Layer:</emphasis> <emphasis>Clone the Layer:</emphasis>
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git clone git://git.yoctoproject.org/meta-intel.git $ git clone git://git.yoctoproject.org/meta-intel.git
Cloning into 'meta-intel'... Cloning into 'meta-intel'...
remote: Counting objects: 14224, done. remote: Counting objects: 15585, done.
remote: Compressing objects: 100% (4591/4591), done. remote: Compressing objects: 100% (5056/5056), done.
remote: Total 14224 (delta 8245), reused 13985 (delta 8006) remote: Total 15585 (delta 9123), reused 15329 (delta 8867)
Receiving objects: 100% (14224/14224), 4.29 MiB | 2.90 MiB/s, done. Receiving objects: 100% (15585/15585), 4.51 MiB | 3.19 MiB/s, done.
Resolving deltas: 100% (8245/8245), done. Resolving deltas: 100% (9123/9123), done.
Checking connectivity... done. Checking connectivity... done.
</literallayout> </literallayout>
</para></listitem> </para></listitem>
@@ -242,12 +245,19 @@
branch you are using for the Yocto Project release branch you are using for the Yocto Project release
(e.g. &DISTRO_NAME_NO_CAP;): (e.g. &DISTRO_NAME_NO_CAP;):
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git checkout <replaceable>branch_name</replaceable> $ cd meta-intel
$ git checkout -b &DISTRO_NAME_NO_CAP; remotes/origin/&DISTRO_NAME_NO_CAP;
Branch &DISTRO_NAME_NO_CAP; set up to track remote branch &DISTRO_NAME_NO_CAP; from origin.
Switched to a new branch '&DISTRO_NAME_NO_CAP;'
</literallayout> </literallayout>
For an example on how to discover branch names and <note>
checkout on a branch, see the To see the available branch names in a cloned repository,
"<ulink url='&YOCTO_DOCS_DEV_URL;#checking-out-by-branch-in-poky'>Checking Out By Branch in Poky</ulink>" use the <filename>git branch -al</filename> command.
section in the Yocto Project Development Tasks Manual. See the
"<ulink url='&YOCTO_DOCS_DEV_URL;#checking-out-by-branch-in-poky'>Checking Out By Branch in Poky</ulink>"
section in the Yocto Project Development Tasks
Manual for more information.
</note>
</para></listitem> </para></listitem>
</orderedlist> </orderedlist>
</para></listitem> </para></listitem>
@@ -261,16 +271,16 @@
<filename>meta-intel</filename> layer except for the layer's <filename>meta-intel</filename> layer except for the layer's
name. name.
For example, if you determine that your hardware most For example, if you determine that your hardware most
closely matches the <filename>meta-minnow</filename>, closely matches the <filename>meta-raspberrypi</filename>,
clone that layer: clone that layer:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git clone git://git.yoctoproject.org/meta-minnow $ git clone git://git.yoctoproject.org/meta-raspberrypi
Cloning into 'meta-minnow'... Cloning into 'meta-raspberrypi'...
remote: Counting objects: 456, done. remote: Counting objects: 4743, done.
remote: Compressing objects: 100% (283/283), done. remote: Compressing objects: 100% (2185/2185), done.
remote: Total 456 (delta 163), reused 384 (delta 91) remote: Total 4743 (delta 2447), reused 4496 (delta 2258)
Receiving objects: 100% (456/456), 96.74 KiB | 0 bytes/s, done. Receiving objects: 100% (4743/4743), 1.18 MiB | 0 bytes/s, done.
Resolving deltas: 100% (163/163), done. Resolving deltas: 100% (2447/2447), done.
Checking connectivity... done. Checking connectivity... done.
</literallayout> </literallayout>
</para></listitem> </para></listitem>