summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 20:48:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 20:48:45 +0000
commitf69416f4d542258a5936e3f04bb3d697cc348468 (patch)
tree573d593ab7ed1195ea4a12de6966a68fd0db797f /sys/arch
parent1ddbadcdf0b3d98f4bbf1fcc64f13fed93faabc9 (diff)
some config(8) stuff
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa190
-rw-r--r--sys/arch/hppa/conf/RAMDISK129
-rw-r--r--sys/arch/hppa/conf/files.hppa118
3 files changed, 437 insertions, 0 deletions
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
new file mode 100644
index 00000000000..ffe6fa99dd2
--- /dev/null
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -0,0 +1,190 @@
+# $OpenBSD: Makefile.hppa,v 1.1 1998/07/02 20:48:43 mickey Exp $
+
+# Makefile for OpenBSD
+#
+# This makefile is constructed from a machine description:
+# config machineid
+# Most changes should be made in the machine description
+# /sys/arch/hppa/conf/``machineid''
+# after which you should do
+# config machineid
+# Machine generic makefile changes should be made in
+# /sys/arch/hppa/conf/Makefile.hppa
+# after which config should be rerun for all machines of that type.
+#
+# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
+# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
+#
+# -DTRACE compile in kernel tracing hooks
+# -DQUOTA compile in file system quotas
+
+# DEBUG is set to -g if debugging.
+# PROF is set to -pg if profiling.
+
+.if ${MACHINE} != "hppa"
+CROSSDIR?= /usr/cross/hppa
+
+.BEGIN:
+ CBIN=${CROSSDIR}/usr/bin; export CBIN; \
+ MACHINE="hppa" MACHINE_ARCH="hp700" AR=$$CBIN/ar AS=$$CBIN/as \
+ CC=$$CBIN/cc HOSTCC=cc LD=$$CBIN/ld NM=$$CBIN/nm \
+ RANLIB=$$CBIN/ranlib STRIP=$$CBIN/strip SIZE=$$CBIN/size ${MAKE} ${.TARGET}
+
+all:
+
+.else
+
+CC?= cc
+HOSTCC?=${CC}
+LD?= ld
+MKDEP?= mkdep
+STRIP?= strip
+COPTS?= -O2
+
+# source tree is located via $S relative to the compilation directory
+S?= ../../../..
+HPPA?= ${S}/arch/hppa
+
+INCLUDES= -I. -I$S/arch -I$S -nostdinc
+CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Dhppa \
+ -DBFD_SUBSPA_BUG
+CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \
+ -Wno-format -Wno-main
+CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float \
+ -mfast-indirect-calls -mpa-risc-1-0
+AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
+LINKFLAGS= -n -Ttext 0 -e start
+STRIPFLAGS= -d
+
+HOSTED_CC= ${HOSTCC}
+HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
+HOSTED_CFLAGS= ${CFLAGS}
+
+### find out what to use for libkern
+.include "$S/lib/libkern/Makefile.inc"
+.ifndef PROF
+LIBKERN= ${KERNLIB}
+.else
+LIBKERN= ${KERNLIB_PROF}
+.endif
+
+### find out what to use for libcompat
+.include "$S/compat/common/Makefile.inc"
+.ifndef PROF
+LIBCOMPAT= ${COMPATLIB}
+.else
+LIBCOMPAT= ${COMPATLIB_PROF}
+.endif
+
+# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
+# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
+
+NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
+
+HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
+
+%OBJS
+
+%CFILES
+
+#%SFILES
+
+# load lines for config "xxx" will be emitted as:
+# xxx: ${SYSTEM_DEP} swapxxx.o
+# ${SYSTEM_LD_HEAD}
+# ${SYSTEM_LD} swapxxx.o
+# ${SYSTEM_LD_TAIL}
+SYSTEM_OBJ= locore.o ${FPSP} \
+ param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
+SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_LD_HEAD= @rm -f $@
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
+SYSTEM_LD_TAIL= @size $@; chmod 755 $@
+
+DEBUG?=
+.if ${DEBUG} == "-g"
+LINKFLAGS+= -X
+SYSTEM_LD_TAIL+=; \
+ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+.else
+LINKFLAGS+= -S
+.endif
+
+%LOAD
+
+assym.h: $S/kern/genassym.sh ${HPPA}/hppa/genassym.cf
+ sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
+ ${PARAM} < ${HPPA}/hppa/genassym.cf > assym.h.tmp && \
+ mv -f assym.h.tmp assym.h
+
+param.c: $S/conf/param.c
+ rm -f param.c
+ cp $S/conf/param.c .
+
+param.o: param.c Makefile
+ ${NORMAL_C}
+
+ioconf.o: ioconf.c
+ ${NORMAL_C}
+
+newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+ sh $S/conf/newvers.sh
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
+
+
+clean::
+ rm -f eddep *bsd bsd.gdb tags *.[io] [a-z]*.s \
+ [Ee]rrs linterrs makelinks assym.h
+
+lint:
+ @lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
+ ${CFILES} ${HPPA}/hppa/swapgeneric.c ioconf.c param.c | \
+ grep -v 'static function .* unused'
+
+tags:
+ @echo "see $S/kern/Makefile for tags"
+
+links:
+ egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
+ sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
+ echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
+ sort -u | comm -23 - dontlink | \
+ sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
+ sh makelinks && rm -f dontlink
+
+SRCS= ${HPPA}/hppa/locore.S \
+ param.c ioconf.c ${CFILES} ${SFILES}
+depend:: .depend
+.depend: ${SRCS} assym.h param.c
+ ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${HPPA}/hppa/locore.S
+ ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
+ -if test -n "${SFILES}"; then \
+ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}; \
+ fi
+ sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
+ ${CPPFLAGS} < ${HPPA}/hppa/genassym.cf
+ @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
+ @rm -f assym.dep
+
+# depend on root or device configuration
+autoconf.o conf.o: Makefile
+
+# depend on network or filesystem configuration
+uipc_proto.o vfs_conf.o: Makefile
+
+# depend on maxusers
+assym.h machdep.o: Makefile
+
+# depend on CPU configuration
+locore.o machdep.o trap.o: Makefile
+
+
+locore.o: ${HPPA}/hppa/locore.S assym.h
+ ${NORMAL_S}
+
+%RULES
+
+.endif
diff --git a/sys/arch/hppa/conf/RAMDISK b/sys/arch/hppa/conf/RAMDISK
new file mode 100644
index 00000000000..dd16e06e419
--- /dev/null
+++ b/sys/arch/hppa/conf/RAMDISK
@@ -0,0 +1,129 @@
+# $OpenBSD: RAMDISK,v 1.1 1998/07/02 20:48:43 mickey Exp $
+#
+# Ram disk kernel.
+#
+
+source /sys
+build /usr/obj/sys/arch/hppa/compile/RAMDISK
+
+machine hppa
+
+
+#option INSECURE # default to secure
+
+option TIMEZONE=0 # time zone to adjust RTC time by
+option DST=0 # daylight savings time used by RTC
+option NTP # hooks supporting the Network Time Protocol
+
+option SWAPPAGER # paging; REQUIRED
+option DEVPAGER # mmap() of devices
+
+#option DDB # in-kernel debugger
+#makeoptions DEBUG="-g" # compile full symbol table
+option DIAGNOSTIC # internal consistency checks
+#option KTRACE # system call tracing, a la ktrace(1)
+
+#option SYSVMSG # System V-like message queues
+#option SYSVSEM # System V-like semaphores
+#option SYSVSHM # System V-like memory sharing
+#option SHMMAXPGS=1024 # 1024 pages is the default
+
+option COMPAT_09 # Kernel compatibility with NetBSD 0.9,
+option COMPAT_10 # NetBSD 1.0,
+option COMPAT_11 # NetBSD 1.1,
+option COMPAT_43 # and 4.3BSD
+#option TCP_COMPAT_42 # TCP bug compatibility with 4.2BSD
+
+#option LKM # loadable kernel modules
+
+option FFS # UFS
+#option QUOTA # UFS quotas
+#option LFS # log-structured file system
+#option EXT2FS # Second Extended Filesystem
+#option MFS # memory file system
+
+
+#option NFSCLIENT # Network File System client
+#option NFSSERVER # Network File System server
+
+#option CD9660 # ISO 9660 + Rock Ridge file system
+#option MSDOSFS # MS-DOS file system
+#option FDESC # /dev/fd
+option FIFO # FIFOs; RECOMMENDED
+#option KERNFS # /kern
+#option NULLFS # loopback file system
+#option PORTAL # dynamically created filesystem objects
+#option PROCFS # /proc
+#option UMAPFS # NULLFS + uid and gid remapping
+#option UNION # union file system
+
+#option GATEWAY # packet forwarding
+option INET # IP + ICMP + TCP + UDP
+#option IPSEC # IPsec
+#option NS # XNS
+#option NSIP # XNS tunneling over IP
+#option IPX # IPX+SPX
+#option IPXIP # IPX tunneling over IP
+#option ISO,TPIP # OSI
+#option EON # OSI tunneling over IP
+#option CCITT,LLC,HDLC # X.25
+#option IPFILTER # IP packet filter for security
+#option IPFILTER_LOG # use /dev/ipl to log IPF
+#option PPP_BSDCOMP # PPP BSD compression
+#option PPP_DEFLATE
+
+pseudo-device loop 2 # network loopback
+pseudo-device bpfilter 8 # packet filter
+#pseudo-device sl 2 # CSLIP
+#pseudo-device ppp 2 # PPP
+#pseudo-device tun 2 # network tunneling over tty
+#pseudo-device enc 1 # encryption device
+#pseudo-device strip 1 # Starmode Radio IP interface
+
+pseudo-device pty 64 # pseudo-terminals
+#pseudo-device tb 1 # tablet line discipline
+#pseudo-device vnd 4 # paging to files
+#pseudo-device ccd 4 # concatenated disk devices
+
+option BOOT_CONFIG # add support for boot -c
+
+# Include all GENERIC options
+#include "/sys/conf/GENERIC"
+
+# Support for various CPU types
+option HP700
+
+option FPEMUL
+
+# Need to set locally
+maxusers 8
+
+# Options for HP hardware
+#option USELEDS # make the lights twinkle
+#option PANICBUTTON # two fast <reset>s on HIL dump kernel
+#option CONSCODE="9" # force console at this select code
+#option UK_KEYBOARD # include United Kingdom HIL keymap
+#option SE_KEYBOARD # include Swedish HIL keymap
+
+#option COMPAT_HPUX # HP-UX binary compatibility
+
+# Options for the ramdisk.
+option MINIROOTSIZE=4096
+option RAMDISK_HOOKS
+
+config bsd root rd0 swap rd0
+
+mainbus0 at root # root "bus"
+
+gsc0 at mainbus0 # internal i/o space
+
+#eisa* at gsc? scode ?
+
+#sd* at scsi? target ? lun ? # SCSI disks
+#st* at scsi? target ? lun ? # SCSI tapes
+#cd* at scsi? target ? lun ? # SCSI cdrom
+#ch* at scsi? target ? lun ? # SCSI changer
+#ss* at scsi? target ? lun ? # SCSI scanner
+#uk* at scsi? target ? lun ? # SCSI unknown
+
+pseudo-device rd 2
diff --git a/sys/arch/hppa/conf/files.hppa b/sys/arch/hppa/conf/files.hppa
new file mode 100644
index 00000000000..db14f966e27
--- /dev/null
+++ b/sys/arch/hppa/conf/files.hppa
@@ -0,0 +1,118 @@
+# $OpenBSD: files.hppa,v 1.1 1998/07/02 20:48:44 mickey Exp $
+#
+# hppa-specific configuration info
+
+# maxpartitions must be the first item in files.${ARCH}
+maxpartitions 16
+
+maxusers 2 8 64
+
+# NOTE! The order of these lines is significant! Don't change them
+# unless you absolutely know what you're doing!
+
+#
+# Mainbus
+#
+
+define mainbus { }
+device mainbus: gscbus, eisabus, pcibus
+attach mainbus at root
+file arch/hppa/hppa/mainbus.c mainbus
+
+# generic HP devices
+#include "../../../dev/hp/file.hp"
+
+major {ccd = 1}
+major {vnd = 2}
+
+#
+# Machine-independent SCSI drivers
+#
+
+include "scsi/files.scsi"
+major { sd = 4 }
+major { st = 5 }
+major { cd = 6 }
+
+# RAM disk
+pseudo-device rd
+file dev/ramdisk.c rd needs-flag
+file arch/hppa/dev/rd_root.c ramdisk_hooks
+major {rd = 3}
+
+#
+# raster console routines
+#
+
+define raster
+include "dev/rcons/files.rcons"
+
+#
+# "workstation console" routines
+#
+
+include "dev/wscons/files.wscons"
+
+#
+# GSC bus devices
+#
+device gsc {[scode = -1]}
+attach gsc at gscbus
+file arch/hppa/dev/gscbus.c gsc
+
+device dca: tty
+attach dca at gsc
+file arch/hppa/dev/dca.c dca needs-flag
+
+device gkd
+attach gkd at gsc
+file arch/hppa/dev/gkd.c gkd needs-flag
+
+device sti: raster, wsconsdev
+attach sti at gsc
+file arch/hppa/dev/sti.c sti needs-flag
+
+device ciolan: ether
+attach ciolan at gsc
+file arch/hppa/dev/ciolan.c ciolan
+
+device lan: ether
+attach lan at gsc
+file arch/hppa/dev/if_i596.c lan
+
+device medusa: fddi
+attach medusa at gsc
+file arch/hppa/dev/medusa.c medusa
+
+#
+# HP-UX binary compatibility
+#
+include "compat/hpux/files.hpux"
+file arch/hppa/hppa/hpux_machdep.c compat_hpux
+
+# FP emulation
+include "arch/hppa/spmath/files.spmath"
+
+#
+# Non-device files
+#
+
+file arch/hppa/hppa/autoconf.c
+file arch/hppa/hppa/conf.c
+file arch/hppa/hppa/db_memrw.c ddb
+file arch/hppa/hppa/machdep.c
+file arch/hppa/hppa/mem.c
+file arch/hppa/hppa/movc.S
+file arch/hppa/hppa/cswtch.S
+file arch/hppa/hppa/pmap.c
+file arch/hppa/hppa/sys_machdep.c
+file arch/hppa/hppa/trap.c
+file arch/hppa/hppa/vm_machdep.c
+file arch/hppa/hppa/disksubr.c
+file arch/hppa/dev/dma.c
+file arch/hppa/dev/clock.c
+file netinet/in_cksum.c inet
+
+file dev/cons.c
+file dev/cninit.c
+