RTEMS Makefile Support

Ralf Corsepius corsepiu at faw.uni-ulm.de
Tue Sep 30 12:04:38 UTC 2003


On Tue, 2003-09-30 at 10:12, Cedric Aubert wrote:
> > I don't fully understand what you are trying to do,
> > but there are two
> > basic issues:
> 
> In fact, I try to integrate a Rtems Makefile
> environnement in Sniff IDE who get a automatic
> Makefile generation. 
Urgs. Now I begin to understand ;-)

I have never used Sniff+ and wasn't aware that it's an IDE.

> To be more usable sniff
> integrate some external makefile to be platform
> specific, and I try to make my own PLATFORM.mk
> witch sould be RTEMS_BSP_DEPENDENT.mk
> I have tried to include Makefile.inc and leaf.cfg
> but many variables between Sniff+ Makefile and Rtems
> are overwritten by eachother (specialy Implicit make
> variables).
Forget about Makefile.inc etc. Try to set the necessary values directly.

Something similar to this should probably work:
CC="-qrtems -B/opt/rtems-4.7/m68k-rtems4.7/lib/
-B/opt/rtems-4.7/m68k-rtems4.7/efi68k/lib/ --specs bsp_specs"

CFLAGS=<CPU_CFLAGS from <BSP.cfg>>

Then try to extract the make-exe from <BSP.cfg> into something Sniff
supports. I'd assume you to have to set LD by the contents of make-exe
and to remove every AM_* or LD_* flags and to replace them by plain
LDFLAGS (Depending on what Sniff+ expect).

If all else fail you could try to move make-exe into a script and invoke
this instead of the linker.

Ralf





More information about the users mailing list