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 # Makefile for NetBSD
# #
@ -74,6 +74,7 @@ STRIPFLAGS= -g
### find out what to use for libkern ### find out what to use for libkern
KERN_AS= obj KERN_AS= obj
KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH}
.include "$S/lib/libkern/Makefile.inc" .include "$S/lib/libkern/Makefile.inc"
.ifndef PROF .ifndef PROF
LIBKERN= ${KERNLIB} 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 # sun2-specific configuration info
@ -10,15 +10,12 @@ maxpartitions 8
maxusers 2 8 64 maxusers 2 8 64
# Standard stuff # Standard stuff
file arch/sun2/sun2/bus_subr.c
file arch/sun2/sun2/locore2.c file arch/sun2/sun2/locore2.c
file arch/sun2/sun2/machdep.c file arch/sun2/sun2/machdep.c
file arch/sun2/sun2/pmap.c file arch/sun2/sun2/pmap.c
file arch/sun2/sun2/control.c file arch/sun2/sun2/control.c
file arch/sun2/sun2/ctrlsp.S file arch/sun2/sun2/ctrlsp.S
file arch/sun2/sun2/dvma.c
file arch/sun2/sun2/mem.c file arch/sun2/sun2/mem.c
file arch/sun2/sun2/enable.c
file arch/sun2/sun2/autoconf.c file arch/sun2/sun2/autoconf.c
file arch/sun2/sun2/conf.c file arch/sun2/sun2/conf.c
file arch/sun2/sun2/db_machdep.c ddb 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/leds.c
file arch/sun2/sun2/idprom.c file arch/sun2/sun2/idprom.c
file arch/sun2/sun2/stub.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/sys_machdep.c
file arch/sun2/sun2/trap.c file arch/sun2/sun2/trap.c
file arch/sun2/sun2/vector.c file arch/sun2/sun2/vector.c
@ -48,7 +45,6 @@ file dev/cons.c
device mainbus {} device mainbus {}
attach mainbus at root attach mainbus at root
file arch/sun2/sun2/mainbus.c
# On-board I/O space (required). # On-board I/O space (required).
device obio {addr = -1, [ipl = -1], [vect = -1]} device obio {addr = -1, [ipl = -1], [vect = -1]}
@ -66,8 +62,8 @@ attach mbmem at mainbus
file arch/sun2/sun2/mbmem.c mbmem file arch/sun2/sun2/mbmem.c mbmem
# MultiBus I/O space (optional). # MultiBus I/O space (optional).
device mbmem {addr = -1, [ipl = -1], [vect = -1]} device mbio {addr = -1, [ipl = -1], [vect = -1]}
attach mbmem at mainbus attach mbio at mainbus
file arch/sun2/sun2/mbio.c mbio file arch/sun2/sun2/mbio.c mbio
# VME # VME
@ -81,11 +77,16 @@ attach sun2vme at mainbus with vme_mainbus
include "dev/scsipi/files.scsipi" include "dev/scsipi/files.scsipi"
# #
# Devices and attributes needed below # Devices, files, and attributes needed below
# #
device sc: scsi, sunscpal #device sc: scsi, sunscpal
file arch/sun2/dev/sc.c sc #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. # On-Board I/O (OBIO), in attach order.
@ -93,20 +94,16 @@ file arch/sun2/dev/sc.c sc
# #
# Zilog Serial (ZS) # Zilog Serial (ZS)
device zs {channel = -1}
attach zs at obio with zs_obio 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 device clock
attach clock at obio attach clock at obio
file arch/sun2/sun2/clock.c file arch/sun2/sun2/clock.c
file dev/clock_subr.c file dev/clock_subr.c
# National Semiconductor Time-Of-Day clock # National Semiconductor Time-Of-Day clock
device tod device tod: mm58167
attach tod at obio attach tod at obio
file arch/sun2/sun2/tod.c file arch/sun2/sun2/tod.c
@ -114,24 +111,29 @@ file arch/sun2/sun2/tod.c
# Intel Ethernet # Intel Ethernet
attach ie at obio with ie_obio 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) # On-Board MEMory (OBMEM)
# #
attach bwtwo at obio with bwtwo_obio attach zs at obmem with zs_obmem
file arch/sun2/dev/bwtwo_obio.c bwtwo_obio & obio
attach bwtwo at obmem with bwtwo_obmem
# #
# MultiBus MEMory (MBMEM) # MultiBus MEMory (MBMEM)
# #
attach ie at mbmem with ie_mbmem attach zs at mbmem with zs_mbmem
file arch/sun2/dev/if_ie_mbmem.c ie_mbmem
attach sc at mbmem with sc_mbmem attach ie at mbmem with ie_mbmem
file arch/sun2/dev/sc_mbmem.c sc_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 # Console (zs) related stuff
@ -140,32 +142,31 @@ file arch/sun2/dev/sc_mbmem.c sc_mbmem
device zstty: tty device zstty: tty
attach zstty at zs attach zstty at zs
file dev/ic/z8530tty.c zstty needs-flag 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 define zsevent
file dev/sun/event.c zsevent #file dev/sun/event.c zsevent
device kbd: zsevent device kbd: zsevent
attach kbd at zs with kbd_zs attach kbd at zs with kbd_zs
file dev/sun/kbd_zs.c kbd_zs file dev/sun/kbd_zs.c kbd_zs
file dev/sun/kbd.c kbd needs-flag file dev/sun/kbd.c kbd needs-flag
file dev/sun/kbd_tables.c kbd file dev/sun/kbd_tables.c kbd
file arch/sun2/dev/kd.c kbd file dev/sun/kd.c kbd
device ms: zsevent device ms: zsevent
attach ms at zs with ms_zs attach ms at zs with ms_zs
file dev/sun/ms_zs.c ms_zs file dev/sun/ms_zs.c ms_zs
file dev/sun/ms.c ms needs-flag file dev/sun/ms.c ms needs-flag
# Memory Disk for boot tape # 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 # Compatibility modules
# SunOS Binary Compatibility (COMPAT_SUNOS) # SunOS Binary Compatibility (COMPAT_SUNOS)
include "compat/sunos/files.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) # SVR4 Binary Compatibility (COMPAT_SVR4)
include "compat/svr4/files.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. # Standard information for Sun2 machines.
machine sun2 m68k machine sun2 m68k
# Standard defines # Standard defines
options EXEC_AOUT, EXEC_SCRIPT options EXEC_AOUT, EXEC_SCRIPT
options _SUN2_