Skip to content

Tutorial : How to activate and install the Buildroot Eclipse plugin ?

mbats edited this page Sep 21, 2014 · 15 revisions

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.

Buildroot setup

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 : Buidroot menuconfig Toolchain menu

Finally, activate in Buildroot the toolchain registration in Eclipse CDT. Buildroot menuconfig Register toolchain menu

Install Eclipse and the Eclipse Buildroot update-site

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:

Go to the Help menu and Install new software : Add new software

Add a new update-site http://buildroot.org/downloads/eclipse/luna : Add update-site

Then, select the Buildroot update-site and install the provided feature. Install embedded Linux development features

Wait a moment while the installation process is running. Installation process

A security warning pop up appears has the provided plugins are not signed by the Eclipse Foundation, just click on the OK button.

Security warning

When this is finished restart Eclipse.

Restart Eclipse