Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>

to update the mvme167 BSP and account for the fact that RAM base
does not have to start at 0.
This commit is contained in:
Joel Sherrill
2000-04-05 18:24:48 +00:00
parent ce70a16674
commit bb734ccaa8
17 changed files with 429 additions and 254 deletions

View File

@@ -4,6 +4,9 @@
# $Id$
#
# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES
# ARE MADE TO THE LINKCMDS FILE.
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68040
@@ -14,10 +17,12 @@ RTEMS_BSP_FAMILY=mvme167
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
# and (hopefully) optimize for it. We also specify the BSP during compilation.
# This should really get its own flag, but it works here.
#
CPU_CFLAGS = -m68040
CPU_CFLAGS = -m68040 -DRTEMS_BSP=$(RTEMS_BSP)
CFLAGS_DEBUG_V += -ggdb
# optimize flag: typically -O, could use -O4 or -fast
# -O4 is ok for RTEMS
@@ -33,11 +38,21 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
#
# RTEMS_DEBUG (RTEMS)
# If defined, debug checks in RTEMS and support library code are enabled.
#
# CD2401_INT_LEVEL
# Interrupt level for the CD2401.
#
# CD2401_POLLED_IO
# 0 for interrupt-driven, 1 for polled I/O.
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
@echo "#define CD2401_INT_LEVEL 1" >>$@
@echo "#define CD2401_POLLED_IO 1" >>$@
endef
# Here is the rule to actually build a $(ARCH)/foo.exe
@@ -79,7 +94,8 @@ define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).nm
$(SIZE) $@
$(STRIP) -o $(basename $@) $@
$(SIZE) $(basename $@).exe
endef
endif