Difference between revisions of "OpenEmbedded Tools for Eclipse (OTE)"

From Openembedded.org
Jump to: navigation, search
(Workflow)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Outdated}}
 +
 
= Overview =
 
= Overview =
  
This page is a work in progress. 
+
OpenEmbedded Tools for Eclipse (OTE) is a set of Eclipse plugins to make using OpenEmbedded from within Eclipse possible.  This page describes a set of workflows that perform common OpenEmbedded tasks, as well as the current state of development of the plugins.
 
+
OpenEmbedded Tools for Eclipse (OTE) is a set of Eclipse plugins to make using OpenEmbedded from within Eclipse possible.   
+
  
 
= Status =
 
= Status =
Line 9: Line 9:
 
OTE is in a beta form.  Functionality present within the plugins should work well, but development on them is fairly new.  Bugs are expected!
 
OTE is in a beta form.  Functionality present within the plugins should work well, but development on them is fairly new.  Bugs are expected!
  
== Current Work ==
+
== Changelog ==
* Documentation
+
* Bug Fixes
+
  
== Version ==
+
=== <tt>0.8.5</tt>===
 +
Bug Fixes
 +
* Invalid thread access in console view when starting build.
 +
* No longer use "-b" option in Bitbake to specify build recipe, due to
 +
problems in Bitbake.
  
Current available version is <tt>0.7.0</tt>.
+
Features
 +
* Deprecate outdated Bug Labs Linux installer option.  
 +
* Update OpenEmbedded Dev installer option with newer bitbake and
 +
configuration variables.  
  
== Changelog ==
+
Known Issues
 +
* "Import recipe as project" feature relies on "bitbake -b" option.
 +
In recent Bitbake versions, this feature is broken, so the Eclipse
 +
action is also broken.
  
 
=== <tt>0.7.0</tt> ===
 
=== <tt>0.7.0</tt> ===
Line 130: Line 138:
  
 
[[Image:Ote variable browser 1.png]]
 
[[Image:Ote variable browser 1.png]]
 +
 +
= Contact =
 +
Please see the [http://groups.google.com/group/openembedded-tools-for-eclipse OTE Google Group] for questions or problems with OTE.
 +
 +
[[Category:User]]

Latest revision as of 17:43, 3 November 2012

NOTE: This page has been identified as having content that is significantly out-of-date, usually because it refers to OpenEmbedded-Classic - for new projects, you should use OpenEmbedded-Core.

See OpenEmbedded Wiki Update Project for more details.

Contents

[edit] Overview

OpenEmbedded Tools for Eclipse (OTE) is a set of Eclipse plugins to make using OpenEmbedded from within Eclipse possible. This page describes a set of workflows that perform common OpenEmbedded tasks, as well as the current state of development of the plugins.

[edit] Status

OTE is in a beta form. Functionality present within the plugins should work well, but development on them is fairly new. Bugs are expected!

[edit] Changelog

[edit] 0.8.5

Bug Fixes

  • Invalid thread access in console view when starting build.
  • No longer use "-b" option in Bitbake to specify build recipe, due to

problems in Bitbake.

Features

  • Deprecate outdated Bug Labs Linux installer option.
  • Update OpenEmbedded Dev installer option with newer bitbake and

configuration variables.

Known Issues

  • "Import recipe as project" feature relies on "bitbake -b" option.

In recent Bitbake versions, this feature is broken, so the Eclipse action is also broken.

[edit] 0.7.0

  • Numerous fixes in Create Project Wizard to sync to latest OE-Dev install.

[edit] License

OTE is licensed under the Eclipse Public License (EPL).

[edit] Source

Sources are available at svn://svn.buglabs.net/ote/trunk.

[edit] Updatesite

The OTE updatesite, used to install the plugins from within Eclipse:

http://bugcommunity.com/downloads/files/ote/updatesite/

[edit] Workflow

OTE is designed to facilitate a set of typical actions or tasks that an OE developer would do.

[edit] Install OpenEmbedded

1. To install a new copy of OpenEmbedded, select the wizard from the File -> New... -> Other... menu. Ote create project wizard 1.png


2. Next, select the flavor of OpenEmbedded you wish to install. Ote create project wizard 2.png


3. Now specify configuration parameters. If fields are unfamiliar, leave the defaults and proceed. Ote create project wizard 3.png


4. Assuming all the necessary system tools are available, the wizard will download sources and configure your new OpenEmbedded install.


Ote create project wizard 4.png

5. Now by clicking finish, an Eclipse project will be created. It may take a few moments for Eclipse to index all the files in the project. Your workbench should look something like this:

Ote workbench 1.png

[edit] Import Existing OE into Workspace

To access the Import Project wizard, select File -> Import... and select the Import OpenEmbedded Project wizard from the general dialog like so:

Ote import project wizard 1.png

Next fill in the three fields required for importing the project.

  • Name: this is the name of the Eclipse project in your workspace and can be anything.
  • Location: this is the base directory of your OpenEmbedded project.
  • Init Script: this is the shell script that initializes OE environment variables and updates the path.

Ote import project wizard 2.png

The final wizard page shows the output of what you would see in the terminal after executing bitbake -e.

Ote import project wizard 3.png

After clicking finish a new project should be available in your workspace. Depending on your machine it may take some moments for Eclipse to scan the entire set of files. It is important to note that even though the project appears in your Eclipse workspace, the files are accessed from your OE project root. So, modifications to these files will be reflected in your existing OE install.

[edit] Create Recipe

This simple wizard generates a template recipe file based on fields that are entered by the user. The wizard can be accessed via File -> New... and selecting New OpenEmbedded Recipe from the dialog. Here is what the wizard looks like:

Ote create recipe wizard 1.png

Now by entering the fields and selecting Finish a new recipe will be generated. Note that currently the Location field must contain a valid directory, so if you're creating a completely new recipe you'll need to create the directory before running this wizard. Here is an example of a recipe filled out:

Ote create recipe wizard 2.png

After clicking Finish Eclipse will open an editor on the generated file. Here is an example:

Ote create recipe wizard 3.png

From here the user can add necessary details to the recipe for building.

[edit] Edit Recipe

Recipes can be selected in the Navigator view by opening the recipes or packages directory in your OpenEmbedded install. Any file with a .bb, .inc or .conf extension will be loaded by the BitBake editor. This editor offers the following features.

[edit] Find Recipe

Eclipse offers a nice file selection dialog that allows for files to be quickly edited without navigating through many folders. This dialog is activated with ctrl-shift-r. The 'r' stands for resource, Eclipse terminology for a file. In this dialog begin typing the file you want to edit. Wildcards and regular expressions are supported. Previously edited files are already available. Here is a screenshot of the dialog:

Ote resource browser 1.png

[edit] Syntax Highlighting

The recipe file in the editor will color various sections of the recipe. For example comments will be green, variable declarations will be blue.

[edit] Variable Auto-Completion

Some conventional variables are available by hitting ctrl-space in the editor window. Here is a screenshot of the context menu:

Ote edit recipe 3.png

[edit] Function Templates

The bitbake editor will create a template function or addtask declaration when selected from the ctrl-space menu.

[edit] Hover-over Variable Information

The bitbake editor will show the value of previously declared variables when the mouse is put over them. The appear as tooltip text. Here is an example of this feature:

Ote edit recipe 2.png

[edit] Build Recipe

A package can be generated from Eclipse via the toolbar or the context menu. This function essentially calls bitbake -b <selected package> to perform the build. The output of the bitbake command will be displayed in the console view.

[edit] Import Recipe Sources as New Project

This allows application developers to create a source project from an OpenEmbedded recipe. This is a simple way to begin modifying a project from within Eclipse. Other Eclipse plugins such as CDT (C/C++ development tools) or PyDev (Python development tools) may be used with these imported projects. However automatic integration is not supported from within OTE and adding appropriate project natures will either need to be done from within the respective plugin or manually by editing the .project file in your project.

[edit] Browse OE variables

OTE provides a quick way of viewing and searching through BitBake/OE variables. The wizard is activate from the OTE toolbar and looks like this:

Ote variable browser 1.png

[edit] Contact

Please see the OTE Google Group for questions or problems with OTE.

Personal tools
Namespaces

Variants
Actions
Navigation
Categories
OE services
Toolbox