Commit 448148c4 authored by jdelange's avatar jdelange

* po-hi-c/include/po_hi_common.h

   po-hi-c/share/make/Makefile.leon.rtems_posix
   po-hi-c/share/make/Makefile.leon.rtems
   - Fix integration of RTEMS 4.11



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@4031 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent d03bd4dd
......@@ -93,11 +93,9 @@
* the use of each driver.
*/
#if ((! (defined (NDS_RTEMS))) && ( ! ( defined (GUMSTIX_RTEMS))))
int Init ();
#endif
/*
#define CONFIGURE_EXTRA_TASK_STACKS (20 * RTEMS_MINIMUM_STACK_SIZE)
*/
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_BARRIERS 1 + __PO_HI_NB_PORTS + 1
......
......@@ -4,9 +4,13 @@
## To use and compile RTEMS, visit http://www.rtems.com
## This file has been built for RTEMS 4.8.0
## This file has been built for a generit RTEMS integration
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg
define bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
......@@ -16,19 +20,18 @@ endef
MANAGERS = all
CC = sparc-rtems-gcc
CPP = sparc-rtems-g++
CC = $(CC_FOR_TARGET)
CPP = $(CXX_FOR_TARGET)
LD = $(LD_FOR_TARGET)
GPROF = sparc-rtems-gprof
TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DLEON_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_CFLAGS = -DRTEMS_PURE -DLEON_RTEMS $(GCC_GENERIC_FLAGS) $(CPU_FLAGS) $(AM_FLAGS) $(GCCSPECS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
LD = sparc-rtems-ld
TARGET_LDFLAGS = -lrtemsbsp -lc -lm $(RUNTIME_PATH)/libs/leon/liblua.a -lm -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
EXTERNAL_OBJECTS += -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
......@@ -52,21 +55,6 @@ endif
target-clean:
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
-include $(RTEMS_CUSTOM)
-include $(PROJECT_ROOT)/make/leaf.cfg
define bsp-link-c
$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(BINARY) $(LINK_OBJS) $(LINK_LIBS) $(RUNTIME_PATH)/libs/leon/liblua.a -lm -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
endef
define bsp-link-cxx
$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(BINARY) $(LINK_OBJS) $(LINK_LIBS) $(RUNTIME_PATH)/libs/leon/liblua.a -lm -L$(RUNTIME_PATH)/libs/leon/ -llua -lm
endef
ifdef USE_GPROF
TARGET_LDFLAGS+=-Wl,--wrap,Clock_isr -pg
EXTERNAL_OBJECTS+=po_hi_gprof_rtems_leon.o
......
......@@ -4,7 +4,7 @@
## To use and compile RTEMS, visit http://www.rtems.com
## This file has been built for RTEMS 4.8.0
## This file has been built for a generic RTEMS integration
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment