4.2.2.1.4.2. Installing the Plug-in Using the Latest Source Code

To install the Eclipse Yocto Plug-in from the latest source code, follow these steps:

  1. 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.

  2. Change to the directory where you set up the Git repository:

         $ cd ~/yocto-eclipse
                                    
  3. 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
                                    
  4. Change to the scripts directory within the Git repository:

         $ cd scripts
                                    
  5. Set up the local build environment by running the setup script:

         $ ./setup.sh
                                    
  6. 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.

  7. 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.

  8. If necessary, start the Eclipse IDE and be sure you are in the Workbench.

  9. Select "Install New Software" from the "Help" pull-down menu.

  10. Click "Add".

  11. Provide anything you want in the "Name" field.

  12. 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.

  13. Click through the "Okay" buttons.

  14. Check the box next to the new entry in the installation window and complete the installation.

  15. 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.