2000-08-04 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>

* mvme167.cfg: Add specification of printk port, console port
	and serial I/O mode.  Arrange for the stripped executable to
	be copied up the build tree.
This commit is contained in:
Joel Sherrill
2000-08-11 19:24:30 +00:00
parent 380b5227b8
commit b96ca51950
2 changed files with 37 additions and 25 deletions

View File

@@ -25,28 +25,34 @@ CPU_CFLAGS = -m68040 -DRTEMS_BSP=$(RTEMS_BSP) -D$(RTEMS_BSP)
# BSP specific preprocessor flags.
# These should only be used in BSP dependent directories.
BSP_CPPFLAGS += -DCD2401_INT_LEVEL=1 -DCD2401_POLLED_IO=1
#
# CD2401_INT_LEVEL
# Interrupt level for the CD2401(when CD2401_IO_MODE == 1).
#
# CD2401_IO_MODE
# 0 for polled I/O, 1 for interrupt-driven.
#
# CONSOLE_MINOR
# Port to use for the RTEMS console
# 0 - /dev/tty0, Serial Port 1/Console on the MVME712M.
# 1 - /dev/tty1, Serial Port 2/TTY01 on the MVME712M.
# 2 - /dev/tty2, Serial Port 3 on the MVME712M.
# 3 - /dev/tty3, Serial Port 4 on the MVME712M.
#
# PRINTK_MINOR
# Port to use for printk debugging output.
# 0 - /dev/tty0, Serial Port 1/Console on the MVME712M.
# 1 - /dev/tty1, Serial Port 2/TTY01 on the MVME712M.
# 2 - /dev/tty2, Serial Port 3 on the MVME712M.
# 3 - /dev/tty3, Serial Port 4 on the MVME712M.
BSP_CPPFLAGS += -DCD2401_INT_LEVEL=1 -DCD2401_IO_MODE=0 -DCD2401_USE_TERMIOS=0 -DCONSOLE_MINOR=1 -DPRINTK_MINOR=1
CFLAGS_DEBUG_V += -ggdb
# optimize flag: typically -O, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This section makes the target dependent options file.
# 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 CD2401_INT_LEVEL 1" >>$@
# @echo "#define CD2401_POLLED_IO 1" >>$@
endef
CFLAGS_OPTIMIZE_V=-O4 -fno-omit-frame-pointer
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.nm
@@ -77,19 +83,19 @@ ifeq ($(RTEMS_USE_GCC272),yes)
# LIBGCC = $(shell $(CC) -msoft-float -print-libgcc-file-name)
define make-exe
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
$(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@)_sym.exe \
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
$(NM) -g -n $(basename $@).exe > $(basename $@).nm
$(STRIP) -o $(basename $@) $@
$(SIZE) $(basename $@).exe
$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
$(STRIP) -o $(basename $@).exe $(basename $@)_sym.exe
$(SIZE) $(basename $@)_sym.exe
endef
else
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).nm
$(STRIP) -o $(basename $@) $@
$(SIZE) $(basename $@).exe
$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
$(STRIP) -o $(basename $@).exe $(basename $@)_sym.exe
$(SIZE) $(basename $@)_sym.exe
endef
endif