Discussion: Current State of the Ev3 Source Build Process

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Discussion: Current State of the Ev3 Source Build Process

Post by tcwan »

Hi,

I've been poking around the EV3 sources a bit more and found that the build process is very fragile as it is dependent on many fixed paths.
In addition, it is difficult to maintain different builds of the firmware due to the hardcoded paths used currently.

Is there any reason that the current source directory layout is used? e.g., to track the LEGO source repository?

I'm wondering if there are plans to switch to one of the auto-build tools such as autotools?
Unfortunately I'm not familiar with the autotools setup to be able to come up with a good configuration.

I've been using scons for my nxos-armdebug project. Scons is quite powerful but it is dependent on python and is not mainstream enough, so not many people know how to use it. In addition, not many IDEs support it natively, except perhaps for Eclipse using the third party SConsolidator plugin.
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: Discussion: Current State of the Ev3 Source Build Process

Post by gloomyandy »

I'm pretty sure the current layout is exactly as it comes from Lego. I suspect that they will not change the way they work. So any changes will require some way of converting future drops from Lego to match the new system. I agree it is not the most convenient, but I guess it could be worse. Given that much of the build system is that used by the Linux kernel I'd be tempted to use something similar rather than adding yet another system into the process, but then again build systems have never been my favorite way to spend my time!
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Discussion: Current State of the Ev3 Source Build Process

Post by afanofosc »

The most important thing to keep in mind, with respect to the EV3 firmware source code, is that LEGO did not want it released to the public yet. There was a mis-communication regarding whether it should have been given out during the OHM event.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Discussion: Current State of the Ev3 Source Build Process

Post by mightor »

There was no miscommunication. I had been given explicit permission to release the source code to give to people at the OHM event. I figured the easiest way to do that was to put it on git, which I did. Rather than wait for one of the OHM participants to create a public repo, over which we have no control, I preemptively did it. LEGO went "OMG", followed by a "meh, whatever".

I think if we wait for LEGO to give the go-ahead, we'll be waiting until early 2014. Robomatter have also been given the source code now, so I think it's safe to say they consider it finished.

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
schodet
Posts: 139
Joined: 29 Sep 2010, 11:21
Contact:

Re: Discussion: Current State of the Ev3 Source Build Process

Post by schodet »

There is a issue open on github (#8) about the build system, I am currently working on it to make it easy to build everything.

The release on github is really a great thing, this will enable cooperation and will make change tracking possible.
LEGO things http://ni.fr.eu.org/lego/ - NXT Improved Firmware (GCC) http://nxt-firmware.ni.fr.eu.org/ - Other robots http://apbteam.org
tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Re: Discussion: Current State of the Ev3 Source Build Process

Post by tcwan »

schodet wrote:There is a issue open on github (#8) about the build system, I am currently working on it to make it easy to build everything.
Great!
T. C.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests