From: Ash C. <as...@gu...> - 2010-03-16 07:40:35
|
Hi Dylan, Responses are inline. On Mon, Mar 15, 2010 at 8:07 PM, DylanB <dbr...@un...> wrote: > I am trying to edit the code in the directory > (tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix), > namely Flash-LED and i2c-io. This is fine as long as you keep your work backed up elsewhere. A 'bitbake robostix -c clean' will blow your changes away. > > 1) Am I correct in assuming that I need to create Bitbake recipes to compile > the code for the Verdex (rather than using the makefiles supplied) because I > have been developing with OE? It is not necessary to use Bitbake recipes but this is the work flow (and the benefit) provided by OpenEmbedded to make your life easier. If you have a makefile already, the recipe is usually trivial. http://www.gumstix.net/wiki/index.php?title=HelloWorld_Examples and http://www.gumstix.net/Setup-and-Programming/view/Build-system-overview/Hello-world-tutorial/111.html have examples of this. All that said, if you are trying to develop code to run on the Robostix, you may find it easier just to use the avr-gcc utilities directly. > > 2) Can the code that goes onto the Robostix, i.e. all hex files, be compiled > using the makefiles that are supplied or will they be affected somehow? Bitbake basically sets up the environment correctly (right executables on the path, right compile flags set, right locations of libraries...) and then runs the makefile. Perhaps you could clarify what you mean by 'affected somehow'? > > 3) Is the source code used in the robostix.bb recipe (i.e. called from the > svn URL) exactly the same as the code supplies in > tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix? Essentially yes. Bitbake downloaded the code according to the SRC_URI specified in the robostix.bb recipe and unpacked it to tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/robostix-1.0-r0/robostix. It then patches this code with any patches listed in the robostix.bb file. > > 4) I ask 3) because I want to edit the robostix.bb recipe to accept changed > versions of the code stored in a local directory instead of the URL. Does > this seem like a reasonable approach? I'm just trying to get my head around > all of this. The recommended way to do this would be to generate patches against the downloaded code (this page http://blogs.elphel.com/2009/12/openembeddedangstrom-kernel-workflow/ gives some hints about the useful 'quilt' tool). Equally, you could download the code to your own directory (not a directory below tmp/), make modifications, and tell bitbake to fetch code from there instead. For general information about how OE fetches sources, see http://docs.openembedded.org/usermanual/usermanual.html#recipes_sources. Admittedly, OE can be a lot to get your head around at first. Be sure to ask questions and play with different recipes and tutorials. -Ash |