Retool for native build.
This commit is contained in:
parent
56dc7b26ad
commit
b80b4c93a5
@ -1,15 +1,15 @@
|
||||
# $NetBSD: DISKLESS,v 1.6 1995/03/26 19:17:48 gwr Exp $
|
||||
# $NetBSD: DISKLESS,v 1.7 1995/06/09 21:53:27 gwr Exp $
|
||||
|
||||
#
|
||||
# DISKLESS -- config file for a diskless Sun3/50 or Sun3/60
|
||||
# DISKLESS Sun3 (3/50, 3/60, 3/110, 3/160, 3/260)
|
||||
# Root is on NFS (no choice)
|
||||
#
|
||||
|
||||
include "std.sun3"
|
||||
|
||||
# Machines to be supported by this kernel
|
||||
options "SUN3_50"
|
||||
options "SUN3_60"
|
||||
options FPU_EMULATE
|
||||
options HAVECACHE # Sun3/260 VAC
|
||||
|
||||
# Needs to be set per system. i.e change these as you see fit
|
||||
maxusers 4
|
||||
@ -20,16 +20,19 @@ options DST=2 # daylight savings rules (for param.c)
|
||||
options SWAPPAGER, VNODEPAGER, DEVPAGER # paging
|
||||
options KTRACE # system call tracing support
|
||||
#makeoptions DEBUG="-g" # symbols for kgdb + nm
|
||||
# I use DDB by copying in the symbols with dbsym.
|
||||
options DDB
|
||||
options SYMTAB_SPACE=92000
|
||||
|
||||
# Filesystem options
|
||||
options NFSSERVER # nfs server support
|
||||
options NFSCLIENT # nfs client support
|
||||
options FFS # ufs file system
|
||||
#
|
||||
options FDESC # /dev/fd/*
|
||||
options FIFO # FIFOs; RECOMMENDED
|
||||
options KERNFS # /kern
|
||||
options NULLFS # loopback file system
|
||||
options PROCFS # /proc
|
||||
#options UNION # union file system
|
||||
|
||||
# Networking options
|
||||
options INET # IP prototol stack support
|
||||
@ -52,15 +55,16 @@ options EXEC_DEBUG
|
||||
options DIAGNOSTIC
|
||||
options SCSIDEBUG
|
||||
|
||||
config netbsd swap nfs
|
||||
config netbsd root on nfs swap on nfs
|
||||
|
||||
# Devices
|
||||
|
||||
bwtwo0 at obmem? addr ?
|
||||
cgfour0 at obmem? addr ?
|
||||
bwtwo0 at obmem0 addr ?
|
||||
cgtwo0 at vmes0 addr 0xff400000 level 4 vect 0xA8
|
||||
cgfour0 at obmem0 addr ?
|
||||
|
||||
ie0 at obio0 addr ? level ?
|
||||
#ie1 at vmes0 addr 0xffe88000 level 3 vect 0x75
|
||||
ie1 at vmes0 addr 0xffe88000 level 3 vect 0x75
|
||||
|
||||
le0 at obio0 addr ? level ?
|
||||
|
||||
|
@ -1,19 +1,16 @@
|
||||
# $NetBSD: GENERIC,v 1.20 1995/04/07 02:18:39 gwr Exp $
|
||||
# $NetBSD: GENERIC,v 1.21 1995/06/09 21:53:30 gwr Exp $
|
||||
|
||||
#
|
||||
# GENERIC kernel - supports root on: ie0, le0, sd*, ...
|
||||
# GENERIC Sun3 (3/50, 3/60, 3/110, 3/160, 3/260)
|
||||
# Supports root on: ie0, le0, sd*, ...
|
||||
#
|
||||
|
||||
include "std.sun3"
|
||||
|
||||
# Machines to be supported by this kernel
|
||||
options "SUN3_50"
|
||||
options "SUN3_60"
|
||||
options "SUN3_110"
|
||||
options "SUN3_160"
|
||||
options "SUN3_260"
|
||||
options GENERIC
|
||||
options FPU_EMULATE
|
||||
options HAVECACHE # Sun3/260 VAC
|
||||
|
||||
# Needs to be set per system. i.e change these as you see fit
|
||||
maxusers 4
|
||||
@ -24,14 +21,14 @@ options DST=2 # daylight savings rules (for param.c)
|
||||
options SWAPPAGER, VNODEPAGER, DEVPAGER # paging
|
||||
options KTRACE # system call tracing support
|
||||
#makeoptions DEBUG="-g" # symbols for kgdb + nm
|
||||
# I use DDB by copying in the symbols with dbsym.
|
||||
options DDB
|
||||
options SYMTAB_SPACE=98000
|
||||
|
||||
# Filesystem options
|
||||
options NFSSERVER # nfs server support
|
||||
options NFSCLIENT # nfs client support
|
||||
options FFS # ufs file system
|
||||
#
|
||||
options CD9660 # ISO 9660 + Rock Ridge file system
|
||||
options FDESC # /dev/fd/*
|
||||
options FIFO # FIFOs; RECOMMENDED
|
||||
options KERNFS # /kern
|
||||
@ -103,4 +100,3 @@ pseudo-device tun 2 # network tunneling over tty
|
||||
|
||||
pseudo-device pty 64 # pseudo-terminals
|
||||
#pseudo-device vnd 4 # paging to files
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.sun3,v 1.30 1995/05/24 20:29:16 gwr Exp $
|
||||
# $NetBSD: Makefile.sun3,v 1.31 1995/06/09 21:53:32 gwr Exp $
|
||||
|
||||
#
|
||||
# Makefile for NetBSD
|
||||
@ -18,44 +18,45 @@
|
||||
#
|
||||
# -DTRACE compile in kernel tracing hooks
|
||||
# -DQUOTA compile in file system quotas
|
||||
#
|
||||
# For cross development, uncomment XINC, and
|
||||
# copy a few things from NetBSD:/usr/include
|
||||
# into compile/xinc : nlist.h setjmp.h stab.h
|
||||
XINC = -nostdinc -I../xinc
|
||||
AWK = nawk
|
||||
|
||||
# DEBUG is set to -g by config if debugging is requested (config -g).
|
||||
DEBUG?=-O
|
||||
# PROF is set to -pg by config if profiling is requested (config -p).
|
||||
AS= gas
|
||||
CC= gcc -msoft-float ${DEBUG}
|
||||
CPP= gcpp
|
||||
AS= as
|
||||
CC= cc ${DEBUG}
|
||||
CPP= cpp
|
||||
LD= ld
|
||||
TOUCH= touch -f -c
|
||||
GPROF.EX=/usr/src/usr.lib/libc/csu/sun3/gmon.ex
|
||||
|
||||
# source tree is located via $S relative to the compilation directory
|
||||
S= ../../../..
|
||||
SUN3= ../..
|
||||
LIBKERN=../libkern.a
|
||||
|
||||
INCLUDES= ${XINC} -I. -I../.. -I$S -I$S/sys -I$S/arch
|
||||
INCLUDES= -I. -I../.. -I$S/arch -I$S/sys -I$S
|
||||
COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -Dmc68020 -Dsun3
|
||||
CFLAGS= ${COPTS}
|
||||
# We do NOT want accidental FP instructions in the kernel.
|
||||
CFLAGS= -msoft-float ${COPTS}
|
||||
|
||||
# What to use for libkern:
|
||||
.include "$S/lib/libkern/Makefile.inc"
|
||||
.ifndef PROF
|
||||
LIBKERN= ${KERNLIB}
|
||||
.else
|
||||
LIBKERN= ${KERNLIB_PROF}
|
||||
.endif
|
||||
|
||||
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
|
||||
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
|
||||
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
|
||||
# is marked as config-dependent.
|
||||
|
||||
NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
|
||||
NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
|
||||
NORMAL_C= ${CC} ${CFLAGS} ${PROF} -c $<
|
||||
NORMAL_C_C= ${CC} ${CFLAGS} ${PROF} ${PARAM} -c $<
|
||||
|
||||
DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
|
||||
DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
|
||||
DRIVER_C= ${CC} ${CFLAGS} ${PROF} -c $<
|
||||
DRIVER_C_C= ${CC} ${CFLAGS} ${PROF} ${PARAM} -c $<
|
||||
|
||||
PROFILE_C= ${CC} -S -c ${COPTS} $<; \
|
||||
PROFILE_C= ${CC} ${COPTS} -S $<; \
|
||||
ex - $*.s < ${GPROF.EX}; \
|
||||
${AS} -o $@ $*.s; \
|
||||
rm -f $*.s
|
||||
@ -72,26 +73,22 @@ NORMAL_S_C= ${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@
|
||||
# ${SYSTEM_LD_HEAD}
|
||||
# ${SYSTEM_LD} swapxxx.o
|
||||
# ${SYSTEM_LD_TAIL}
|
||||
DEBUG?=
|
||||
.if ${DEBUG} == "-g"
|
||||
LDX=-X
|
||||
.else
|
||||
LDX=-S
|
||||
.endif
|
||||
SYSTEM_OBJ= locore.o vnode_if.o ${OBJS} param.o ioconf.o
|
||||
#SYSTEM_DEP= Makefile symbols.sort ${SYSTEM_OBJ}
|
||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
|
||||
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
|
||||
SYSTEM_LD= -@echo ${LD} ${LDX} -n -N -e start -T 0E004000 -o $@ \
|
||||
'$${SYSTEM_OBJ}' vers.o ${LIBKERN}; \
|
||||
${LD} ${LDX} -n -N -e start -T 0E004000 -o $@ \
|
||||
${SYSTEM_OBJ} vers.o ${LIBKERN}
|
||||
#SYSTEM_LD_TAIL= @echo rearranging symbols;\
|
||||
# symorder symbols.sort $@;\
|
||||
SYSTEM_LD_TAIL= @size $@; chmod 755 $@; \
|
||||
[ X${DEBUG} = X-g ] && { \
|
||||
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
|
||||
echo strip $@; strip $@; } || true
|
||||
echo strip -d $@; strip -d $@; } || true
|
||||
|
||||
%LOAD
|
||||
|
||||
@ -110,15 +107,9 @@ lint: /tmp param.c
|
||||
grep -v 'struct/union .* never defined' | \
|
||||
grep -v 'possible pointer alignment problem'
|
||||
|
||||
symbols.sort: ${SUN3}/sun3/symbols.raw
|
||||
grep -v '^#' ${SUN3}/sun3/symbols.raw \
|
||||
| sed 's/^ //' | sort -u > symbols.sort
|
||||
|
||||
locore.o: assym.s ${SUN3}/sun3/locore.s ${SUN3}/include/asm.h \
|
||||
${SUN3}/include/trap.h $S/arch/m68k/include/trap.h
|
||||
${CPP} -DLOCORE ${COPTS} ${SUN3}/sun3/locore.s > plocore.s
|
||||
echo "" >>plocore.s
|
||||
${AS} -o locore.o plocore.s
|
||||
${CPP} -DLOCORE ${COPTS} ${SUN3}/sun3/locore.s | ${AS} -o locore.o
|
||||
|
||||
# the following is necessary because autoconf.o depends on #if GENERIC
|
||||
autoconf.o: Makefile
|
||||
@ -134,9 +125,6 @@ db_aout.o : Makefile
|
||||
|
||||
sun3_startup.o pmap.o kern_xxx.o: Makefile
|
||||
|
||||
# depend on network configuration
|
||||
af.o uipc_proto.o locore.o: Makefile
|
||||
|
||||
# depend on maxusers
|
||||
assym.s: Makefile
|
||||
|
||||
@ -144,12 +132,12 @@ assym.s: genassym
|
||||
./genassym >assym.s
|
||||
|
||||
genassym:
|
||||
${CC} ${INCLUDES} ${IDENT} ${PARAM} -Dmc68020 -Dsun3 -o genassym \
|
||||
${SUN3}/sun3/genassym.c
|
||||
${CC} ${INCLUDES} ${IDENT} ${PARAM} -Dmc68020 -Dsun3 \
|
||||
-o genassym ${SUN3}/sun3/genassym.c
|
||||
|
||||
depend: assym.s ioconf.c param.c vnode_if.c
|
||||
mkdep ${COPTS} ${CFILES} ioconf.c param.c vnode_if.c
|
||||
mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${SUN3}/sun3/genassym.c
|
||||
mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${SUN3}/sun3/genassym.c
|
||||
|
||||
links:
|
||||
egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
|
||||
@ -163,14 +151,14 @@ tags:
|
||||
@echo "see $S/kern/Makefile for tags"
|
||||
|
||||
ioconf.o: ioconf.c
|
||||
${CC} -c ${CFLAGS} ioconf.c
|
||||
${CC} ${CFLAGS} -c ioconf.c
|
||||
|
||||
param.c: $S/conf/param.c
|
||||
rm -f param.c
|
||||
cp $S/conf/param.c .
|
||||
|
||||
param.o: param.c Makefile
|
||||
${CC} -c ${CFLAGS} ${PARAM} param.c
|
||||
${CC} ${CFLAGS} ${PARAM} -c param.c
|
||||
|
||||
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
|
||||
sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.sun3,v 1.8 1995/05/24 20:29:19 gwr Exp $
|
||||
# $NetBSD: files.sun3,v 1.9 1995/06/09 21:53:34 gwr Exp $
|
||||
|
||||
#
|
||||
# sun3-specific configuration info
|
||||
@ -143,15 +143,15 @@ file arch/sun3/dev/ms.c zs
|
||||
file arch/sun3/dev/fb.c
|
||||
|
||||
# This is obsolete...
|
||||
pseudo-device prom
|
||||
file arch/sun3/dev/prom.c prom needs-flag
|
||||
# pseudo-device prom
|
||||
# file arch/sun3/dev/prom.c prom needs-flag
|
||||
|
||||
# Major numbers for root/swap device configuration
|
||||
major {sd=7} # SCSI disk
|
||||
#major {xy=3} # Xylogics 450 and 451
|
||||
major {vnd=5} # vnode pseudo-device
|
||||
major {sd=7} # SCSI disk
|
||||
#major {xd=10} # Xylogics 7053
|
||||
#major {rd=13} # RAM disk (for mini-kernel)
|
||||
#major {vnd=??} # vnode pseudo-device
|
||||
|
||||
# Compatibility modules
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user