Commit 1cf20937 authored by julien.delange's avatar julien.delange
Browse files

import rtems for x86, add a boot grub image

to automatically run generated applications with qemu



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@741 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 18ab91bf
......@@ -148,6 +148,7 @@ AC_OUTPUT([
share/ocarina/Makefile
share/tsim/Makefile
share/make/Makefile
share/utils/Makefile
share/make/Makefile.native
share/config/Makefile
share/config/spif-rtems/Makefile
......
SUBDIRS = tsim models ocarina cheddar make config
SUBDIRS = tsim models ocarina cheddar make config utils
......@@ -3,6 +3,7 @@ EXTRA_DIST=$(srcdir)/Makefile.common \
$(srcdir)/Makefile.arm.n770 \
$(srcdir)/Makefile.leon.ork \
$(srcdir)/Makefile.leon.rtems \
$(srcdir)/Makefile.x86.rtems \
$(srcdir)/Makefile.nds.rtems \
$(srcdir)/Makefile.spif.rtems \
$(srcdir)/Makefile.template
......
......@@ -195,6 +195,16 @@ $(BINARY): generate-asn1-deployment target-objects check-rtems compile-po-hi $(U
$(make-exe)
endif
ifeq ($(TARGET), x86.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)
cp $(BINARY) binary
run: $(BINARY)
qemu -fda $(RUNTIME_PATH)/utils/x86-rtems-boot.img -hda fat:. -boot a
endif
ifeq ($(TARGET), nds.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)
......
## This file is a part of PolyORB-HI-C software.
## It sets some variables useful to compile generated
## code to the LEON platform with the RTEMS operating system.
## To use and compile RTEMS, visit http://www.rtems.com
## This file has been built for RTEMS 4.8.0
define bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
MANAGERS = all
CC = i386-rtems4.8-gcc
CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof
TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DLEON_RTEMS
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
LD = i386-rtems4.8-ld
TARGET_LDFLAGS = -lrtemsbsp -lc
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
ifdef USE_GPROF
TARGET_LDFLAGS+=-Wl,--wrap,Clock_isr -pg
target-objects:
else
target-objects:
endif
EXTRA_DIST=$(srcdir)/x86-rtems-boot.img
CLEANFILES = *~
utilssrc = ${shell $(CYGPATH_U) '$(OCARINA_RUNTIME)/polyorb-hi-c/utils'}
install-data-local:
$(INSTALL) -d $(DESTDIR)$(utilssrc)
for f in $(EXTRA_DIST); do $(INSTALL) -m 444 $$f $(DESTDIR)$(utilssrc) ; done
uninstall-local:
rm -rf $(DESTDIR)$(utilssrc)
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