sparc-rtems4.11-gcc error

Gedare Bloom gedare at rtems.org
Mon Jul 30 14:05:19 UTC 2012


check out the Makefiles in examples-v2.git repository I think they are
similar and offer a template to follow.

On Mon, Jul 30, 2012 at 9:57 AM, Pierre Ficheux
<pierre.ficheux at openwide.fr> wrote:
> Le 30/07/2012 15:23, Luca Cinquepalmi a écrit :
>
>>
>> Supposing that I have a simple hello.c rtems file, could you please
>> indicate me the complete command line to compile it?
>
>
> You can use a Makefile such as the following:
>
> PGM=${ARCH}/hello.exe
>
> MANAGERS=all
>
> # C source names
> CSRCS = hello.c
> COBJS = $(CSRCS:%.c=${ARCH}/%.o)
>
> include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
> include $(RTEMS_CUSTOM)
> include $(PROJECT_ROOT)/make/leaf.cfg
>
> OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
>
> all:    ${ARCH} $(PGM)
>
> $(PGM): $(OBJS)
>         $(make-exe)
>
>
>
>
> 1- Set  RTEMS_MAKEFILE_PATH environment variable:
>
> $ export RTEMS_MAKEFILE_PATH=/opt/rtems-4.11/sparc-rtems/leon2
>
> 2- Compile with:
>
> $ make
>
>
>
>
> --
> Pierre FICHEUX  -/- CTO OWI, France -\- pierre.ficheux at openwide.fr
>                                          http://ingenierie.openwide.fr
>                                          http://www.ficheux.org
> I would love to change the world, but they won't give me the source code
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users




More information about the users mailing list