Commit 387dd769 authored by julien.delange's avatar julien.delange
Browse files

fix nds build

introduce port for gumstix/rtems



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@1141 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent b2285ce7
......@@ -154,6 +154,7 @@ AC_OUTPUT([
share/config/spif-rtems/Makefile
share/config/leon-rtems/Makefile
share/config/nds-rtems/Makefile
share/config/gumstix-rtems/Makefile
support/Makefile
])
......
SUBDIRS = leon-rtems spif-rtems nds-rtems
SUBDIRS = leon-rtems spif-rtems nds-rtems gumstix-rtems
EXTRA_DIST=$(srcdir)/config.c \
$(srcdir)/po_hi_rtemsconfig.h
CLEANFILES = *~
configsrc = ${shell $(CYGPATH_U) '$(OCARINA_RUNTIME)/polyorb-hi-c/config/nds-rtems'}
install-data-local:
$(INSTALL) -d $(DESTDIR)$(configsrc)
for f in $(EXTRA_DIST); do $(INSTALL) -m 444 $$f $(DESTDIR)$(configsrc) ; done
uninstall-local:
rm -rf $(DESTDIR)$(configsrc)
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://ocarina.enst.fr
*
* Copyright (C) 2010, European Space Agency (ESA)
*/
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
extern void rtems_bsdnet_loopattach();
static struct rtems_bsdnet_ifconfig loopback_config = {
"lo0", /* name */
(int (*)(struct rtems_bsdnet_ifconfig *, int))rtems_bsdnet_loopattach, /* at
tach function */
NULL, /* link to next interface */
"127.0.0.1", /* IP address */
"255.0.0.0", /* IP net mask */
};
struct rtems_bsdnet_config rtems_bsdnet_config = {
&loopback_config, /* Network interface */
NULL, /* Use fixed network configuration */
0, /* Default network task priority */
0, /* Default mbuf capacity */
0, /* Default mbuf cluster capacity */
"testSystem", /* Host name */
"nowhere.com", /* Domain name */
"127.0.0.1", /* Gateway */
"127.0.0.1", /* Log host */
{"127.0.0.1" }, /* Name server(s) */
{"127.0.0.1" }, /* NTP server(s) */
};
/*
* This is a part of PolyORB-HI-C distribution, a minimal
* middleware written for generated code from AADL models.
* You should use it with the Ocarina toolsuite.
*
* For more informations, please visit http://ocarina.enst.fr
*
* Copyright (C) 2010, European Space Agency.
*/
#include <deployment.h>
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
......@@ -6,6 +6,7 @@ EXTRA_DIST=$(srcdir)/Makefile.common \
$(srcdir)/Makefile.x86.rtems \
$(srcdir)/Makefile.x86.linuxtaste \
$(srcdir)/Makefile.nds.rtems \
$(srcdir)/Makefile.gumstix.rtems \
$(srcdir)/Makefile.spif.rtems \
$(srcdir)/Makefile.template
......
......@@ -238,6 +238,14 @@ $(BINARY): generate-asn1-deployment target-objects check-rtems compile-po-hi $(U
$(make-exe)
endif
ifeq ($(TARGET), gumstix.rtems)
OBJS = $(USER_OBJS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(EXTERNAL_OBJECTS)
$(BINARY): generate-asn1-deployment target-objects check-rtems compile-po-hi $(USER_OBJS) $(GENERATED_OBJS)
$(make-exe)
endif
ifeq ($(TARGET), native)
$(BINARY): generate-asn1-deployment target-objects compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) $(TARGET_OBJECTS)
$(CC) -o $(BINARY) $(EXTERNAL_OBJECTS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(USER_OBJS) $(LDFLAGS)
......
## This file is a part of PolyORB-HI-C software.
## It sets some variables useful to compile generated
## code to the NDS platform with the RTEMS operating system.
## To use and compile RTEMS, visit http://www.rtems.com
## This file has been built for RTEMS 4.9.0
## So, you have to build the cross compiler for RTEMS4.9
## Basically, it will called arm-rtems4.9
MANAGERS = all
CC = arm-rtems4.10-gcc
CPP = arm-rtems4.10-g++
GPROF = arm-rtems4.10-gprof
TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
LD = arm-rtems4.10-ld
TARGET_LDFLAGS =
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)
endef
define bsp-link-cxx
$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(BINARY) $(LINK_OBJS) $(LINK_LIBS)
endef
target-objects:
define bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
cp $@ $(basename $@).ralf
endef
......@@ -11,19 +11,19 @@
MANAGERS = all
CC = arm-rtems4.9-gcc
CPP = arm-rtems4.9-g++
CC = arm-rtems4.10-gcc
CPP = arm-rtems4.10-g++
GPROF = arm-rtems4.9-gprof
GPROF = arm-rtems4.10-gprof
TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DNDS_RTEMS
TARGET_CFLAGS = -DRTEMS_POSIX -DNDS_RTEMS -mstructure-size-boundary=8 -mcpu=arm9tdmi -mfpu=vfp -mfloat-abi=soft
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
LD = arm-rtems4.9-ld
LD = arm-rtems4.10-ld
TARGET_LDFLAGS = -lrtemsbsp -lc
target-clean:
......
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