documentation: dev-manual - Updated installing YP eclipse plugin from code

Fixes [YOCTO #3445]

Updated the "Installing the Plug-in Using the Latest Source Code"
section for the Eclipse section.  This was pretty much out of
whack.  I have created new steps that involve running the setup
script and then running the build script.  The new information
still needs a review.

(From yocto-docs rev: 5903964a9583c6051abefa4a7b944b59a76825b4)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2012-11-27 18:55:56 -06:00 committed by Richard Purdie
parent 7c88384bb2
commit 0f0db8afde
1 changed files with 23 additions and 20 deletions

View File

@ -849,36 +849,39 @@
</literallayout> </literallayout>
For this example, the repository is named For this example, the repository is named
<filename>~/yocto-eclipse</filename>.</para></listitem> <filename>~/yocto-eclipse</filename>.</para></listitem>
<listitem><para>Change to the directory where you set up
the Git repository:
<literallayout class='monospaced'>
$ cd ~/yocto-eclipse
</literallayout></para></listitem>
<listitem><para>Be sure you are in the right branch for your Git repository. <listitem><para>Be sure you are in the right branch for your Git repository.
For this release set the branch to <filename>&DISTRO_NAME;</filename>: For this release set the branch to <filename>&DISTRO_NAME;</filename>:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME; $ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME;
</literallayout></para></listitem> </literallayout></para></listitem>
<listitem><para>Locate the <filename>build.sh</filename> script in the <listitem><para>Change to the <filename>scripts</filename>
Git repository you created in the previous step. directory within the Git repository:
The script is located in the <filename>scripts</filename>.</para></listitem>
<listitem><para>Be sure to set and export the <filename>ECLIPSE_HOME</filename> environment
variable to the top-level directory in which you installed your version of Eclipse.
For example, if your Eclipse directory is <filename>$HOME/eclipse</filename>,
use the following:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ export ECLIPSE_HOME=$HOME/eclipse $ cd scripts
</literallayout></para></listitem> </literallayout></para></listitem>
<listitem><para>Be sure you have the right branch in the Poky Git repository <listitem><para>Set up the local build environment by running the
checked out. setup script:
For example, the following commands checkout the <filename>&DISTRO_NAME;</filename>
branch in the local Poky Git repository:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ cd ~/poky $ ./setup.sh
$ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME;
</literallayout></para></listitem> </literallayout></para></listitem>
<listitem><para>Move back to your Yocto Eclipse directory and <listitem><para>When the script finishes execution, it prompts
run the <filename>build.sh</filename> script. you with instructions on how to run the
Provide the name of the Git branch along with the Yocto Project release you are <filename>build.sh</filename> script, which is also in
using. the <filename>scripts</filename> of the
Git repository created earlier.
</para></listitem>
<listitem><para>Run the <filename>build.sh</filename> script
as directed.
Be sure to provide the name of the Git branch along with the
Yocto Project release you are using.
Here is an example that uses the <filename>&DISTRO_NAME;</filename> branches: Here is an example that uses the <filename>&DISTRO_NAME;</filename> branches:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ scripts/build.sh &DISTRO_NAME; &DISTRO_NAME; $ ECLIPSE_HOME=/home/scottrif/yocto-eclipse/scripts/eclipse ./build.sh &DISTRO_NAME; &DISTRO_NAME;
</literallayout> </literallayout>
After running the script, the file After running the script, the file
<filename>org.yocto.sdk-&lt;release&gt;-&lt;date&gt;-archive.zip</filename> <filename>org.yocto.sdk-&lt;release&gt;-&lt;date&gt;-archive.zip</filename>
@ -890,7 +893,7 @@
<listitem><para>Click "Add".</para></listitem> <listitem><para>Click "Add".</para></listitem>
<listitem><para>Provide anything you want in the "Name" field.</para></listitem> <listitem><para>Provide anything you want in the "Name" field.</para></listitem>
<listitem><para>Click "Archive" and browse to the ZIP file you built <listitem><para>Click "Archive" and browse to the ZIP file you built
in step four. in step seven.
This ZIP file should not be "unzipped", and must be the This ZIP file should not be "unzipped", and must be the
<filename>*archive.zip</filename> file created by running the <filename>*archive.zip</filename> file created by running the
<filename>build.sh</filename> script.</para></listitem> <filename>build.sh</filename> script.</para></listitem>