From 49e317185074acb625f8f3f4c6494e12b73b1e15 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 28 Sep 2011 11:43:08 -0700 Subject: [PATCH] documentation/adt-manual/adt-eclipse.xml: Added zip method for plug-in install I added a new subsection to the section that talks about how to install the YP eclipse plug-in. According the Jessica, we should document this method for installing the plug-in. (From yocto-docs rev: dea5b1dacc16c08d61356e95bece2aec581dd16d) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/adt-manual/adt-eclipse.xml | 114 +++++++++++++++++------ 1 file changed, 86 insertions(+), 28 deletions(-) diff --git a/documentation/adt-manual/adt-eclipse.xml b/documentation/adt-manual/adt-eclipse.xml index 4fdf90f374..829b2f98f7 100644 --- a/documentation/adt-manual/adt-eclipse.xml +++ b/documentation/adt-manual/adt-eclipse.xml @@ -138,40 +138,98 @@ Installing the Eclipse Yocto Plug-in - WRITER'S NOTE: The steps in here are temporary. - I need to replace them when the real procedure is available from Jessica Zhang. + You can install the Eclipse Yocto Plug-in one of two methods: use Eclipse IDE commands, + or use the build.sh script to build + and then install a zip file of the plug-in. - - To install the Eclipse Yocto Plug-in, follow these steps: - - Open a shell and create a Git repository with: - + +
+ Eclipse IDE Method + + + To install the Eclipse Yocto Plug-in by using Eclipse IDE commands, + follow these steps: + + Open a shell and create a Git repository with: + $ git clone git://git.yoctoproject.org/yocto-eclipse yocto-eclipse - - For this example, I created ~/yocto-eclipse. - In Eclipse, select "Import" from the "File" menu. - Expand the "General" box and pick "existing projects into workspace". - - Select the root directory and browse to "~/yocto-eclipse/plugins". - - There will be three things there. - Select each one and install one at a time. - Do all three. - Restart everything. - - + + For this example, I created ~/yocto-eclipse. + In Eclipse, select "Import" from the "File" menu. + Expand the "General" box and pick "existing projects into workspace". + + Select the root directory and browse to "~/yocto-eclipse/plugins". + + There will be three things there. + Select each one and install one at a time. + Do all three. + Restart everything. + + - - At this point I should be able to invoke Eclipse from the shell using the following: - + + At this point you should be able to invoke Eclipse from the shell using the following: + $ cd ~/eclipse $ ./eclipse -vmargs -XX:PermSize=256M - - The left navigation pane shows the default projects. - Right-click on one of these projects and run it as an Eclipse application. - This brings up a second instance of Eclipse IDE that has the Yocto Plug-in. - + + The left navigation pane shows the default projects. + Right-click on one of these projects and run it as an Eclipse application. + This brings up a second instance of Eclipse IDE that has the Yocto Plug-in. + +
+ +
+ Zip File Method + + To install the Eclipse Yocto Plug-in by building and installing a plug-in + zip file, follow these steps: + + Open a shell and create a Git repository with: + + $ git clone git://git.yoctoproject.org/yocto-eclipse yocto-eclipse + + For this example, I created ~/yocto-eclipse. + Locate the build.sh script in the + Git repository you created in the previous step. + The script is located in the scripts. + Be sure to set the ECLIPSE_HOME environment + variable to the top-level directory in which you installed the Indigo + version of Eclipse. + For example, if your Eclipse directory is $HOME/eclipse, + use the following: + + ECLIPSE_HOME=$HOME/eclipse + + Run the build.sh script and provide the + name of the Git branch along with the Yocto Project release you are + using. + Here is an example that uses the master Git repository + and the 1.1M4 release: + + $ scripts/build.sh master 1.1M4 + + After running the script, the file + org.yocto.sdk-<release>-<date>-archive.zip + in the current directory. + Install the zip file in the top-level directory of the + installed Indigo Eclipse IDE. + Restart the Eclipse IDE if necessary. + + + + + At this point you should be able to invoke Eclipse from the shell using the following: + + $ cd ~/eclipse + $ ./eclipse -vmargs -XX:PermSize=256M + + The left navigation pane shows the default projects. + Right-click on one of these projects and run it as an Eclipse application. + This brings up a second instance of Eclipse IDE that has the Yocto Plug-in. + +