diff options
Diffstat (limited to 'make/custom/mvme167.cfg')
-rw-r--r-- | make/custom/mvme167.cfg | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/make/custom/mvme167.cfg b/make/custom/mvme167.cfg index 6b7032705d..df47822c73 100644 --- a/make/custom/mvme167.cfg +++ b/make/custom/mvme167.cfg @@ -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 @@ -76,9 +91,10 @@ define make-exe endef else define make-exe - $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \ + $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \ $(LINK_OBJS) $(LINK_LIBS) - $(NM) -g -n $(basename $@).exe > $(basename $@).nm + $(NM) -g -n $@ > $(basename $@).nm + $(STRIP) -o $(basename $@) $@ $(SIZE) $(basename $@).exe endef endif |