[Buildroot] Migrate Buildroot based Eclipse project

Emeric Vigier emeric.vigier at savoirfairelinux.com
Tue Mar 10 16:11:39 UTC 2015

On 15-03-10 11:51 AM, Waldemar Axt wrote:
> Hello,
> I am working on a project for an embedded Linux device based on Buildroot.
> The project sources and the Buildroot sources/Framework are maintained
> and version controlled inside the same GIT repository.
> The sources are managed as Eclipse projects using the Buildroot plugin.
> So far everything works fine, but there is one big problem with this
> configuration, I am not able to solve. If the GIT repository
> (containing all the source code and Buildroot ...) is cloned by someone
> else, also the eclipse project settings
> (.project, .cproject) are cloned (intentionally, as I don't want to
> force everyone to setup the whole project settings) are cloned.

I faced the same issue recently and had to import the eclipse project 
from the existing makefile again.

> My understanding of the whole Eclipse plugin thing is, that it sets up
> the Buildroot specific paths for the projects. But as it turns out,
> it doesn't. The '.cproject' contains many setup/system specific entries.
> More specifically, the paths to the toolchain
> (Buildroot built-in toolchain) are included and many ids have user
> specific informations included. They seem to reflect the
> paths on the system somehow. If the Buildroot toolchain lies in
> /"/home/user/projectX/Buildroot/output/host/usr/bin" /
> for example, then the ids are something like
> /"org.buildroot.home.user.projectX.buildroot.output......"./
> So what is an appropriate way to setup such a project structure? I have
> no Idea how to keep the project settings portable.

One thing you could do:
- export the toolchain to a system absolute path, e.g. /opt/toolchains, 
by modifying BR2_HOST_DIR for example;
- register the toolchain with eclipse again (check what you have in 
- import your project in eclipse again (from existing makefile I suppose?)

Check this:

> Thank you in advance.


More information about the buildroot mailing list