To install the Eclipse Yocto Plug-in from the latest source code, follow these steps:
Be sure your development system is not using OpenJDK to build the plug-in by doing the following:
Use the Oracle JDK. If you don't have that, go to http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and download the latest appropriate Java SE Development Kit tarball for your development system and extract it into your home directory.
In the shell you are going
to do your work, export the location of
the Oracle Java.
The previous step creates a new folder
for the extracted software.
You need to use the following
export
command
and provide the specific location:
export PATH=~/extracted_jdk_location
/bin:$PATH
In the same shell, create a Git repository with:
$ cd ~ $ git clone git://git.yoctoproject.org/eclipse-poky
Be sure to checkout the correct tag. For example, if you are using Luna, do the following:
$ git checkout luna/yocto-2.2
This puts you in a detached HEAD state, which is fine since you are only going to be building and not developing.
kepler/yocto-2.2
branch.
Change to the
scripts
directory within the Git repository:
$ cd scripts
Set up the local build environment by running the setup script:
$ ./setup.sh
When the script finishes execution,
it prompts you with instructions on how to run
the build.sh
script, which
is also in the scripts
directory of the Git repository created
earlier.
Run the build.sh
script as directed.
Be sure to provide the tag name, documentation
branch, and a release name.
Here is an example that uses the
luna/yocto-2.2
tag, the
master
documentation
branch, and
tbd
for the
release name:
$ ECLIPSE_HOME=/home/scottrif/eclipse-poky/scripts/eclipse ./build.sh luna/yocto-2.2 master tbd 2>&1 | tee -a build.log
After running the script, the file
org.yocto.sdk-
release
-
date
-archive.zip
is in the current directory.
If necessary, start the Eclipse IDE and be sure you are in the Workbench.
Select "Install New Software" from the "Help" pull-down menu.
Click "Add".
Provide anything you want in the "Name" field.
Click "Archive" and browse to the
ZIP file you built in step eight.
This ZIP file should not be "unzipped", and must
be the *archive.zip
file
created by running the
build.sh
script.
Click the "OK" button.
Check the boxes that appear in
the installation window to install the
Yocto Project ADT Plug-in
,
Yocto Project Bitbake Commander Plug-in
,
and the
Yocto Project Documentation plug-in
.
Finish the installation by clicking through the appropriate buttons. You can click "OK" when prompted about installing software that contains unsigned content.
Restart the Eclipse IDE if necessary.
At this point you should be able to configure the Eclipse Yocto Plug-in as described in the "Configuring the Eclipse Yocto Plug-in" section.