sparc-rtems4.11-gcc error

Pierre Ficheux pierre.ficheux at openwide.fr
Mon Jul 30 13:57:54 UTC 2012


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





More information about the users mailing list