A successful compile is near.

This commit is contained in:
fredette 2001-04-06 17:17:58 +00:00
parent 9cc24a09b7
commit 666b4cf417
3 changed files with 35 additions and 32 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sun2,v 1.1 2001/03/29 21:07:58 fredette Exp $
# $NetBSD: Makefile.sun2,v 1.2 2001/04/06 17:17:58 fredette Exp $
# Makefile for NetBSD
#
@ -74,6 +74,7 @@ STRIPFLAGS= -g
### find out what to use for libkern
KERN_AS= obj
KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH}
.include "$S/lib/libkern/Makefile.inc"
.ifndef PROF
LIBKERN= ${KERNLIB}

View File

@ -1,4 +1,4 @@
# $NetBSD: files.sun2,v 1.1 2001/03/29 21:07:58 fredette Exp $
# $NetBSD: files.sun2,v 1.2 2001/04/06 17:17:58 fredette Exp $
#
# sun2-specific configuration info
@ -10,15 +10,12 @@ maxpartitions 8
maxusers 2 8 64
# Standard stuff
file arch/sun2/sun2/bus_subr.c
file arch/sun2/sun2/locore2.c
file arch/sun2/sun2/machdep.c
file arch/sun2/sun2/pmap.c
file arch/sun2/sun2/control.c
file arch/sun2/sun2/ctrlsp.S
file arch/sun2/sun2/dvma.c
file arch/sun2/sun2/mem.c
file arch/sun2/sun2/enable.c
file arch/sun2/sun2/autoconf.c
file arch/sun2/sun2/conf.c
file arch/sun2/sun2/db_machdep.c ddb
@ -30,7 +27,7 @@ file arch/sun2/sun2/kgdb_machdep.c kgdb
file arch/sun2/sun2/leds.c
file arch/sun2/sun2/idprom.c
file arch/sun2/sun2/stub.c
file arch/sun2/sun2/sunmon.c
file arch/sun2/sun2/promlib.c
file arch/sun2/sun2/sys_machdep.c
file arch/sun2/sun2/trap.c
file arch/sun2/sun2/vector.c
@ -48,7 +45,6 @@ file dev/cons.c
device mainbus {}
attach mainbus at root
file arch/sun2/sun2/mainbus.c
# On-board I/O space (required).
device obio {addr = -1, [ipl = -1], [vect = -1]}
@ -66,8 +62,8 @@ attach mbmem at mainbus
file arch/sun2/sun2/mbmem.c mbmem
# MultiBus I/O space (optional).
device mbmem {addr = -1, [ipl = -1], [vect = -1]}
attach mbmem at mainbus
device mbio {addr = -1, [ipl = -1], [vect = -1]}
attach mbio at mainbus
file arch/sun2/sun2/mbio.c mbio
# VME
@ -81,11 +77,16 @@ attach sun2vme at mainbus with vme_mainbus
include "dev/scsipi/files.scsipi"
#
# Devices and attributes needed below
# Devices, files, and attributes needed below
#
device sc: scsi, sunscpal
file arch/sun2/dev/sc.c sc
#device sc: scsi, sunscpal
#file arch/sun2/dev/sc.c sc
include "dev/sun/files.sun"
file arch/sun2/dev/zs_any.c zs_obio | zs_obmem | zs_mbmem
file arch/sun2/dev/bwtwo_any.c bwtwo_obio | bwtwo_obmem
#
# On-Board I/O (OBIO), in attach order.
@ -93,20 +94,16 @@ file arch/sun2/dev/sc.c sc
#
# Zilog Serial (ZS)
device zs {channel = -1}
attach zs at obio with zs_obio
attach zs at obmem with zs_obmem
file arch/sun/dev/zs.c zs needs-count
file dev/ic/z8530sc.c zs
# AMD, Intersil or Mostek clock
# AMD timer
device clock
attach clock at obio
file arch/sun2/sun2/clock.c
file dev/clock_subr.c
# National Semiconductor Time-Of-Day clock
device tod
device tod: mm58167
attach tod at obio
file arch/sun2/sun2/tod.c
@ -114,24 +111,29 @@ file arch/sun2/sun2/tod.c
# Intel Ethernet
attach ie at obio with ie_obio
file arch/sun2/dev/if_ie_obio.c ie_obio
#file arch/sun2/dev/if_ie_obio.c ie_obio
attach bwtwo at obio with bwtwo_obio
#
# On-Board MEMory (OBMEM)
#
attach bwtwo at obio with bwtwo_obio
file arch/sun2/dev/bwtwo_obio.c bwtwo_obio & obio
attach zs at obmem with zs_obmem
attach bwtwo at obmem with bwtwo_obmem
#
# MultiBus MEMory (MBMEM)
#
attach ie at mbmem with ie_mbmem
file arch/sun2/dev/if_ie_mbmem.c ie_mbmem
attach zs at mbmem with zs_mbmem
attach sc at mbmem with sc_mbmem
file arch/sun2/dev/sc_mbmem.c sc_mbmem
attach ie at mbmem with ie_mbmem
file arch/sun2/dev/if_ie_mbmem.c ie_mbmem
#attach sc at mbmem with sc_mbmem
#file arch/sun2/dev/sc_mbmem.c sc_mbmem
#
# Console (zs) related stuff
@ -140,32 +142,31 @@ file arch/sun2/dev/sc_mbmem.c sc_mbmem
device zstty: tty
attach zstty at zs
file dev/ic/z8530tty.c zstty needs-flag
file arch/sun2/dev/zs_kgdb.c kgdb
file dev/sun/zs_kgdb.c kgdb
define zsevent
file dev/sun/event.c zsevent
#file dev/sun/event.c zsevent
device kbd: zsevent
attach kbd at zs with kbd_zs
file dev/sun/kbd_zs.c kbd_zs
file dev/sun/kbd.c kbd needs-flag
file dev/sun/kbd_tables.c kbd
file arch/sun2/dev/kd.c kbd
file dev/sun/kd.c kbd
device ms: zsevent
attach ms at zs with ms_zs
file dev/sun/ms_zs.c ms_zs
file dev/sun/ms.c ms needs-flag
# Memory Disk for boot tape
file arch/sun2/dev/md_root.c memory_disk_hooks
#file arch/sun2/dev/md_root.c memory_disk_hooks
# Compatibility modules
# SunOS Binary Compatibility (COMPAT_SUNOS)
include "compat/sunos/files.sunos"
file arch/m68k/m68k/sunos_machdep.c compat_sunos
file arch/m68k/m68k/sunos_machdep.c compat_sunos
# SVR4 Binary Compatibility (COMPAT_SVR4)
include "compat/svr4/files.svr4"

View File

@ -1,7 +1,8 @@
# $NetBSD: std.sun2,v 1.1 2001/03/29 21:07:59 fredette Exp $
# $NetBSD: std.sun2,v 1.2 2001/04/06 17:17:58 fredette Exp $
# Standard information for Sun2 machines.
machine sun2 m68k
# Standard defines
options EXEC_AOUT, EXEC_SCRIPT
options _SUN2_