Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Migrate Buildroot based Eclipse project
@ 2015-03-10 15:51 Waldemar Axt
  2015-03-10 16:11 ` Emeric Vigier
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Axt @ 2015-03-10 15:51 UTC (permalink / raw)
  To: buildroot

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.

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.

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150310/b0c24026/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Migrate Buildroot based Eclipse project
  2015-03-10 15:51 [Buildroot] Migrate Buildroot based Eclipse project Waldemar Axt
@ 2015-03-10 16:11 ` Emeric Vigier
  0 siblings, 0 replies; 2+ messages in thread
From: Emeric Vigier @ 2015-03-10 16:11 UTC (permalink / raw)
  To: buildroot

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 
~/.buildroot-eclipse.toolchains);
- import your project in eclipse again (from existing makefile I suppose?)

Check this:
http://lists.busybox.net/pipermail/buildroot/2014-November/111734.html

>
> Thank you in advance.

Emeric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-10 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 15:51 [Buildroot] Migrate Buildroot based Eclipse project Waldemar Axt
2015-03-10 16:11 ` Emeric Vigier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox