summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-03-19 14:46:04 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-03-19 14:46:04 +0000
commit5010ec768b0f9a5c311168ecf98f14ad7ca0eec4 (patch)
tree296774877decb2fa3fead71eba5b11ae4a148a01 /mk/bsd.prefs.mk
parent2b560c5df44f2dbea3be06cb94e4f525213101a1 (diff)
downloadpkgsrc-5010ec768b0f9a5c311168ecf98f14ad7ca0eec4.tar.gz
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").
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk39
1 files changed, 38 insertions, 1 deletions
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