-
Notifications
You must be signed in to change notification settings - Fork 17
Tutorial : How to activate and install the Buildroot Eclipse plugin ?
This tutorial describes how to configure Buildroot to be used by the Buildroot Eclipse plug-in, and then how to setup an Eclipse installation with the Buildroot Eclipse plugin.
The Eclipse Buildroot Toolchain Plugin discovers the available Buildroot toolchains by reading a file named .buildroot-eclipse.toolchains
which is generated in the user home
directory.
This file does not have to be written manually: Buildroot can automatically add all the generated toolchains into this file. This must be done by enabling the BR2_ECLIPSE_REGISTER
option.
- If your Buildroot version is 2013.02 or later, then the support of
BR2_ECLIPSE_REGISTER
is already there. - If your Buildroot version is 2012.11 or older, then you should apply the patch for Buildroot that adds the
BR2_ECLIPSE_REGISTER
. Note that the patch was generated for Buildroot 2012.11. If you need to apply the patch on older versions, it may not apply smoothy, and adaptations will be needed.
First step is to open the Buildroot menu :
make menuconfig
And go into the toolchain package :
Finally, activate in Buildroot the toolchain registration in Eclipse CDT.
Then, download Eclipse IDE for C/C++ Developers (Luna 4.4) from :
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/lunar. Extract the Eclipse tarball, and run the eclipse
command to start Eclipse.
In Eclipse, you will have to add the Buildroot update-site to install useful tools for embedded Linux development.
To install the Eclipse Buildroot plugin on an older Eclipse version use the following update-sites:
- Eclipse Luna : http://buildroot.org/downloads/eclipse/luna
- Eclipse Kepler SR2 : http://buildroot.org/downloads/eclipse/kepler-sr2. This version will not be updated anymore.
- Eclipse Kepler SR1 : http://buildroot.org/downloads/eclipse/kepler-sr1. This version will not be updated anymore.
- Eclipse Kepler : http://buildroot.org/downloads/eclipse/kepler. This version will not be updated anymore.
- Eclipse Juno : http://buildroot.org/downloads/eclipse/juno. This version will not be updated anymore.
Go to the Help
menu and Install new software
:
Add a new update-site http://buildroot.org/downloads/eclipse/luna
:
Then, select the Buildroot update-site and install the provided feature.
Wait a moment while the installation process is running.
A security warning pop up appears has the provided plugins are not signed by the Eclipse Foundation, just click on the OK
button.
When this is finished restart Eclipse.