To install the Eclipse Yocto Plug-in from the latest source code, follow these steps:
Open a shell and create a Git repository with:
$ git clone git://git.yoctoproject.org/eclipse-poky yocto-eclipse
For this example, the repository is named
~/yocto-eclipse
.
Change to the directory where you set up the Git repository:
$ cd ~/yocto-eclipse
Be sure you are in the right branch for your Git repository.
For this release set the branch to dylan
:
$ git checkout -b dylan origin/dylan
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
of the
Git repository created earlier.
Run the build.sh
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 dylan
branch:
$ ECLIPSE_HOME=/home/scottrif/yocto-eclipse/scripts/eclipse ./build.sh dylan dylan
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 seven.
This ZIP file should not be "unzipped", and must be the
*archive.zip
file created by running the
build.sh
script.
Click through the "Okay" buttons.
Check the box next to the new entry in the installation window and complete the installation.
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.