mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
documentation: Fixed references using the DISTRO_NAME variable
With the introduction of a DISTRO_NAME_NO_CAP variable, the occurrences of the DISTRO_NAME variable had to be checked to see if they really should be using the "NO_CAP" variable instead. Output and actual branch names are case-sensitive. (From yocto-docs rev: 711a3255538298dd3c4bd2af8ad13bc2d159c872) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3831ca0dee
commit
133224fb31
@@ -10180,8 +10180,8 @@
|
||||
during your build.
|
||||
Here is an example:
|
||||
<literallayout class='monospaced'>
|
||||
# We built using the &DISTRO_NAME; branch of the poky repo
|
||||
$ git clone -b &DISTRO_NAME; git://git.yoctoproject.org/poky
|
||||
# We built using the &DISTRO_NAME_NO_CAP; branch of the poky repo
|
||||
$ git clone -b &DISTRO_NAME_NO_CAP; git://git.yoctoproject.org/poky
|
||||
$ cd poky
|
||||
# We built using the release_branch for our layers
|
||||
$ git clone -b release_branch git://git.mycompany.com/meta-my-bsp-layer
|
||||
|
||||
@@ -976,7 +976,7 @@
|
||||
Git uses "branches" to organize different development efforts.
|
||||
For example, the <filename>poky</filename> repository has
|
||||
several branches that include the current
|
||||
<filename>&DISTRO_NAME;</filename> branch, the
|
||||
<filename>&DISTRO_NAME_NO_CAP;</filename> branch, the
|
||||
<filename>master</filename> branch, and many branches for past
|
||||
Yocto Project releases.
|
||||
You can see all the branches by going to
|
||||
@@ -1008,14 +1008,14 @@
|
||||
$ cd ~
|
||||
$ git clone git://git.yoctoproject.org/poky
|
||||
$ cd poky
|
||||
$ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME;
|
||||
$ git checkout -b &DISTRO_NAME_NO_CAP; origin/&DISTRO_NAME_NO_CAP;
|
||||
</literallayout>
|
||||
In this example, the name of the top-level directory of your local
|
||||
<link linkend='source-directory'>Source Directory</link>
|
||||
is "poky" and the name of that local working area (local branch)
|
||||
you just created and checked out is "&DISTRO_NAME;".
|
||||
you just created and checked out is "&DISTRO_NAME_NO_CAP;".
|
||||
The files in your local repository now reflect the same files that
|
||||
are in the "&DISTRO_NAME;" development branch of the
|
||||
are in the "&DISTRO_NAME_NO_CAP;" development branch of the
|
||||
Yocto Project's "poky" upstream repository.
|
||||
It is important to understand that when you create and checkout a
|
||||
local working branch based on a branch name,
|
||||
@@ -1023,7 +1023,7 @@
|
||||
at the time you created your local branch, which could be
|
||||
different from the files at the time of a similarly named release.
|
||||
In other words, creating and checking out a local branch based on
|
||||
the "&DISTRO_NAME;" branch name is not the same as
|
||||
the "&DISTRO_NAME_NO_CAP;" branch name is not the same as
|
||||
cloning and checking out the "master" branch.
|
||||
Keep reading to see how you create a local snapshot of a Yocto
|
||||
Project Release.
|
||||
@@ -1046,7 +1046,7 @@
|
||||
<filename>dizzy-12.0.0</filename>,
|
||||
<filename>fido-13.0.0</filename>,
|
||||
<filename>jethro-14.0.0</filename>, and
|
||||
<filename>&DISTRO_NAME;-&POKYVERSION;</filename>.
|
||||
<filename>&DISTRO_NAME_NO_CAP;-&POKYVERSION;</filename>.
|
||||
These tags represent Yocto Project releases.
|
||||
</para>
|
||||
|
||||
@@ -1064,14 +1064,14 @@
|
||||
$ cd ~
|
||||
$ git clone git://git.yoctoproject.org/poky
|
||||
$ cd poky
|
||||
$ git checkout -b my-&DISTRO_NAME;-&POKYVERSION; &DISTRO_NAME;-&POKYVERSION;
|
||||
$ git checkout -b my-&DISTRO_NAME_NO_CAP;-&POKYVERSION; &DISTRO_NAME_NO_CAP;-&POKYVERSION;
|
||||
</literallayout>
|
||||
In this example, the name of the top-level directory of your local Yocto Project
|
||||
Files Git repository is <filename>poky</filename>.
|
||||
And, the name of the local branch you have created and checked out is
|
||||
<filename>my-&DISTRO_NAME;-&POKYVERSION;</filename>.
|
||||
<filename>my-&DISTRO_NAME_NO_CAP;-&POKYVERSION;</filename>.
|
||||
The files in your repository now exactly match the Yocto Project &DISTRO;
|
||||
Release tag (<filename>&DISTRO_NAME;-&POKYVERSION;</filename>).
|
||||
Release tag (<filename>&DISTRO_NAME_NO_CAP;-&POKYVERSION;</filename>).
|
||||
It is important to understand that when you create and checkout a local
|
||||
working branch based on a tag, your environment matches a specific point
|
||||
in time and not the entire development branch.
|
||||
|
||||
Reference in New Issue
Block a user