Page 1 of 1
					
				Setting Up Eclipse For Firmware Dev DRAFT
				Posted: Wed Feb 29, 2012 5:36 pm
				by Fred
				Sections:
- Getting the right eclipse
- Getting it setup with extras
- Getting the firmware into it
- Getting CDT to behave itself
Using eclipse and customising eclipse are left as exercises for the reader.
Fred
 
			
					
				Getting the right eclipse
				Posted: Wed Feb 29, 2012 5:37 pm
				by Fred
				There are many to choose from, get the one "for Java", not classic, not Java EE, not CDT, not PDE, etc.
On linux install it as your user, as crappy a that is, current versions don't work properly installed as root...
Fred.
			 
			
					
				Getting it setup with extras
				Posted: Wed Feb 29, 2012 5:39 pm
				by Fred
				You need the dev tools from 
http://tools.diyefi.org/ installed and working before this guide will work.
go into software and enable the cdt repo
choose install new software, select CDT
I also add 
markdown, ???
 
			
					
				Re: Setting Up Eclipse For Firmware Dev DRAFT
				Posted: Wed Feb 29, 2012 5:40 pm
				by Fred
				Git in eclipse is broken by being oriented heavily toward Java dev. This is a shame as it makes it extra awkward to do the default thing. In future I'll put a guide here. You can do it their way or figure out your own way, whatever you want.
			 
			
					
				Re: Setting Up Eclipse For Firmware Dev DRAFT
				Posted: Wed Feb 29, 2012 5:50 pm
				by Fred
				CDT will build too much by default with the "all" target, so you need to tweak it.
Right click the project directory and choose "Build Configurations" and then "Manage...":
 
Then delete the "Debug" build and rename the "Release" build to "Default" and give it a description:
 
Now right click the project directory and select properties at the bottom:
 
First un-check "Generate Makefiles automatically", then correct the build directory to "${workspace_loc:/freeems-vanilla/src}":
 
Then correct the build target by changing it from "all" to "s19":
 
At this point you should be able to right click the project directory or enter the Project menu and choose "Build Project". In the lower panel is a tab called "Console" which should end in the sequence "**** Build Finished ****", congratulations, you just built the firmware in Eclipse! :-)
Fred.