From 5010ec768b0f9a5c311168ecf98f14ad7ca0eec4 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Mon, 19 Mar 2001 14:46:04 +0000 Subject: add a list of default serial devices on a per machine_arch basis as discussed a while back on tech-pkg. Note that these defaults will not be 100% accurate as different machines with the same MACHINE_ARCH may have different serial hardware. However the default serial device may then be overridden in /etc/mk.conf. This should at least be better than what we had before ("all the world is i386"). --- mk/bsd.prefs.mk | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 8b8803bf4aa..319b304ccef 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.26 2001/03/13 09:53:37 agc Exp $ +# $NetBSD: bsd.prefs.mk,v 1.27 2001/03/19 14:46:04 dmcmahill Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -143,6 +143,43 @@ NEED_NCURSES= YES # recursive dependency problems!) .endif # USE_CURSES + +# +# list of serial port devices commonly found on various machines and +# which is the common default one. This is used for semi-reasonable +# defaults on different machines. These can and should be overridden +# on your machine in /etc/mk.conf. +# Please help fill in the list. +.if (${OPSYS} == "NetBSD") +.if (${MACHINE_ARCH} == alpha) +DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 +SERIAL_DEVICES?= /dev/ttyC0 \ + /dev/ttyC1 +.elif (${MACHINE_ARCH} == "i386") +DEFAULT_SERIAL_DEVICE?= /dev/tty00 +SERIAL_DEVICES?= /dev/tty00 \ + /dev/tty01 +.elif (${MACHINE_ARCH} == m68k) +DEFAULT_SERIAL_DEVICE?= /dev/tty00 +SERIAL_DEVICES?= /dev/tty00 \ + /dev/tty01 +.elif (${MACHINE_ARCH} == mipsel) +DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 +SERIAL_DEVICES?= /dev/ttyC0 \ + /dev/ttyC1 +.elif (${MACHINE_ARCH} == "sparc") +DEFAULT_SERIAL_DEVICE?= /dev/ttya +SERIAL_DEVICES?= /dev/ttya \ + /dev/ttyb +.else +DEFAULT_SERIAL_DEVICE?= /dev/null +SERIAL_DEVICES?= /dev/null +.endif # ${MACHINE_ARCH} +.else # ${OPSYS} != "NetBSD" +DEFAULT_SERIAL_DEVICE?= /dev/null +SERIAL_DEVICES?= /dev/null +.endif # ${OPSYS} == "NetBSD" + ##### Some overrides of defaults below on a per-OS basis. .if (${OPSYS} == "NetBSD") LOCALBASE?= ${DESTDIR}/usr/pkg -- cgit v1.2.3