From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emeric Vigier Date: Tue, 10 Mar 2015 12:11:39 -0400 Subject: [Buildroot] Migrate Buildroot based Eclipse project In-Reply-To: References: Message-ID: <54FF17BB.8090205@savoirfairelinux.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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