diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2011-08-10 14:19:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 15:27:00 +0100 |
commit | d14ab10f5bf762955931d519e1e059366cafb8a6 (patch) | |
tree | 50e20f239bdbf330ed1c19b62f385cfb4cfbaf5f /documentation | |
parent | 1cafae44ec5a6fb6d2f8d2e6ebb58dcfe890b44e (diff) | |
download | poky-d14ab10f5bf762955931d519e1e059366cafb8a6.tar.gz |
documentation/dev-manual/dev-manual-start.xml: split out poky-extras
I separated the section that explains how to set up the poky-extras
git repository. This used to be in the kernel area right after
creating the bare clone and the copy of the bare clone. I thought
it would be better as a stand-alone bulleted item.
(From yocto-docs rev: 4ea917c7218f238e2b0d2bb377a97f4b1f5eb1f6)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/dev-manual-start.xml | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml index 822731af90..52be498b44 100644 --- a/documentation/dev-manual/dev-manual-start.xml +++ b/documentation/dev-manual/dev-manual-start.xml | |||
@@ -109,10 +109,15 @@ | |||
109 | If you are going to be making modifications to a supported Linux Yocto kernel you | 109 | If you are going to be making modifications to a supported Linux Yocto kernel you |
110 | need to get set up so that you can edit local copies of the source. | 110 | need to get set up so that you can edit local copies of the source. |
111 | This setup involves creating a bare clone of the Linux Yocto kernel and then cloning | 111 | This setup involves creating a bare clone of the Linux Yocto kernel and then cloning |
112 | that repository.</para> | 112 | that repository. |
113 | You can create the bare clone and the copy of the bare clone anywhere you like. | ||
114 | For simplicity, it is recommended that you create these structures outside of the | ||
115 | Yocto Project files Git repository.</para> | ||
113 | <para>As an example, the following transcript shows how to create the bare clone | 116 | <para>As an example, the following transcript shows how to create the bare clone |
114 | of the <filename>linux-yocto-2.6.37</filename> kernel and then create a clone of | 117 | of the <filename>linux-yocto-2.6.37</filename> kernel and then create a copy of |
115 | that repository: | 118 | that clone. |
119 | The bare clone is named <filename>linux-yocto-2.6.37.git</filename>, while the | ||
120 | copy is named <filename>linux-yocto-2.6.37</filename>: | ||
116 | <literallayout class='monospaced'> | 121 | <literallayout class='monospaced'> |
117 | $ git clone --bare git://git.yoctoproject.org/linux-yocto-2.6.37 linux-yocto-2.6.37.git | 122 | $ git clone --bare git://git.yoctoproject.org/linux-yocto-2.6.37 linux-yocto-2.6.37.git |
118 | Initialized empty Git repository in /home/scottrif/poky/linux-yocto-2.6.37.git/ | 123 | Initialized empty Git repository in /home/scottrif/poky/linux-yocto-2.6.37.git/ |
@@ -127,14 +132,23 @@ | |||
127 | $ git clone linux-yocto-2.6.37.git linux-yocto-2.6.37 | 132 | $ git clone linux-yocto-2.6.37.git linux-yocto-2.6.37 |
128 | Initialized empty Git repository in /home/scottrif/poky/linux-yocto-2.6.37/.git/ | 133 | Initialized empty Git repository in /home/scottrif/poky/linux-yocto-2.6.37/.git/ |
129 | Checking out files: 100% (35188/35188), done. | 134 | Checking out files: 100% (35188/35188), done. |
130 | </literallayout></para> | 135 | </literallayout></para></listitem> |
131 | <para>The final repository you need for kernel development is the | 136 | <listitem id='poky-extras-repo'><para><emphasis> |
132 | <filename>meta-kernel-dev</filename> Git repository. | 137 | The <filename>poky-extras</filename> Git Repository</emphasis>: |
133 | This repository allows you to configure the build system so that you point to your | 138 | The <filename>poky-extras</filename> Git repository contains metadata needed to |
134 | local area for the Linux Yocto kernel source files. | 139 | build the kernel image. |
135 | Pointing to these files locally is much more efficient than requiring a download of the | 140 | In particular, it contains the kernel <filename>.bbappend</filename> files that you |
136 | source files from upstream each time you build the kernel image: | 141 | edit to point to your locally modified kernel source files and to build kernel |
142 | image. | ||
143 | Pointing to these local files is much more efficient than requiring a download of the | ||
144 | source files from upstream each time you make changes to the kernel.</para> | ||
145 | <para>It is good practice to create this Git repository inside the Yocto Project | ||
146 | files Git repository. | ||
147 | Following is an example that creates the <filename>poky-extras</filename> Git | ||
148 | repository inside the Yocto Project files Git repository, which is named | ||
149 | <filename>poky</filename> in this case: | ||
137 | <literallayout class='monospaced'> | 150 | <literallayout class='monospaced'> |
151 | $ cd ~/poky | ||
138 | $ git clone git://git.yoctoproject.org/poky-extras poky-extras | 152 | $ git clone git://git.yoctoproject.org/poky-extras poky-extras |
139 | Initialized empty Git repository in /home/scottrif/poky/poky-extras/.git/ | 153 | Initialized empty Git repository in /home/scottrif/poky/poky-extras/.git/ |
140 | remote: Counting objects: 531, done. | 154 | remote: Counting objects: 531, done. |