Commit 27a4fd51 authored by jdelange's avatar jdelange
Browse files

* po-hi-c/share/utils/Makefile.am

   po-hi-c/share/utils/gumstix-uboot.bin
   - Add necessary files to build gumstix flash
     to simulate the system with QEMU
 * po-hi-c/share/make/Makefile.nds.rtems
   po-hi-c/share/make/Makefile.gumstix.rtems
   - Add a sim target that automatically
     starts the appropriate simulator (qemu or desmume).



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2989 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 55c8991a
## 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.
## code to the Gumstix 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
......@@ -20,13 +15,15 @@ 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 $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/leon-rtems/
TARGET_CFLAGS = -DRTEMS_PURE -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE =
LD = arm-rtems4.10-ld
TARGET_LDFLAGS =
target-clean:
rm -f $(BINARY).ralf
rm -f flash.img
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......@@ -45,7 +42,12 @@ endef
target-objects:
sim:
rm -f flash.img && \
dd of=flash.img bs=128k count=128 if=/dev/zero && \
dd of=flash.img bs=128k conv=notrunc if=$(RUNTIME_PATH)/utils/gumstix-uboot.bin && \
dd of=flash.img bs=1k conv=notrunc seek=4096 if=$(BINARY) && \
qemu-system-arm -M connex -m 289 -nographic -monitor null -pflash flash.img
define bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
......
......@@ -27,6 +27,10 @@ LD = arm-rtems4.10-ld
TARGET_LDFLAGS = -lrtemsbsp -lc -lm -mthumb-interwork
target-clean:
rm -f $(BINARY).nds
sim:
desmume $(BINARY).nds
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......
EXTRA_DIST=$(srcdir)/x86-rtems-boot.img $(srcdir)/xpath
EXTRA_DIST=$(srcdir)/x86-rtems-boot.img \
$(srcdir)/gumstix-uboot.bin \
$(srcdir)/xpath
CLEANFILES = *~
......
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