summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-11 19:24:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-11 19:24:30 +0000
commitb96ca5195021005117ca026a3e196bc224fcb620 (patch)
tree18583a7db8f79501268ba529b1365f6c3c54d8a0
parent380b5227b8ea06ae7230b6ee6639e0d8431af0e5 (diff)
downloadrtems-b96ca5195021005117ca026a3e196bc224fcb620.tar.bz2
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.
-rw-r--r--make/ChangeLog6
-rw-r--r--make/custom/mvme167.cfg56
2 files changed, 37 insertions, 25 deletions
diff --git a/make/ChangeLog b/make/ChangeLog
index 3b314931cf..79e6e93f0c 100644
--- a/make/ChangeLog
+++ b/make/ChangeLog
@@ -1,3 +1,9 @@
+
+2000-08-04 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
+ * mvme167.cfg: Add specification of printk port, console port
+ * custom/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.
2000-08-10 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* mbx8xx.cfg: Support for shared printk and no termios.
diff --git a/make/custom/mvme167.cfg b/make/custom/mvme167.cfg
index f93d1cf1b2..12e0ac6664 100644
--- a/make/custom/mvme167.cfg
+++ b/make/custom/mvme167.cfg
@@ -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