NWDO for ibmnws.

This commit is contained in:
matt 2003-10-19 03:37:16 +00:00
parent 14573b928a
commit a9baced49d
11 changed files with 364 additions and 0 deletions

6
distrib/ibmnws/Makefile Normal file
View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 2003/10/19 03:37:16 matt Exp $
SUBDIR= netboot
TARGETS+= release
.include <bsd.subdir.mk>

View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 2003/10/19 03:37:16 matt Exp $
SUBDIR= ramdisk .WAIT kernel
TARGETS+=release
.include <bsd.subdir.mk>

View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2003/10/19 03:37:16 matt Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
NCDCS = ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= GENERIC ${RAMDISK} -
MDSET_RELEASEDIR= binary/kernel
MDSET_POST.- = \
${NCDCS} ${.TARGET} ${.TARGET}.1000
.include "${DISTRIBDIR}/common/Makefile.mdset"
.include <bsd.prog.mk>

View File

@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.1 2003/10/19 03:37:16 matt Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
IMAGE= ramdisk.fs
IMAGESIZE= 2048k
MAKEFS_FLAGS= -f 15
WARNS= 1
# DBG= -Os -mmultiple -mstring
CRUNCHBIN= ramdiskbin
CRUNCHGEN_FLAGS= -d "${DBG}"
LISTS= ${.CURDIR}/list
MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN= be
MAKEDEVTARGETS= std md0 pty0 ttyv0
IMAGEDEPENDS= ${CRUNCHBIN} \
dot.profile termcap.src \
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
${NETBSDSRCDIR}/etc/services
SMALLPROG_INET6=1
# Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o
.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
release:
.include <bsd.prog.mk>

View File

@ -0,0 +1,29 @@
# $NetBSD: disktab.preinstall,v 1.1 2003/10/19 03:37:16 matt Exp $
#
# Disk geometry and partition layout tables.
# Key:
# dt controller type
# ty type of disk (fixed, removeable, simulated)
# d[0-4] drive-type-dependent parameters
# ns #sectors/track
# nt #tracks/cylinder
# nc #cylinders/disk
# sc #sectors/cylinder, ns*nt default
# su #sectors/unit, sc*nc default
# se sector size, DEV_BSIZE default
# rm rpm, 3600 default
# sf supports bad144-style bad sector forwarding
# sk sector skew per track, default 0
# cs sector skew per cylinder, default 0
# hs headswitch time, default 0
# ts one-cylinder seek time, default 0
# il sector interleave (n:1), 1 default
# bs boot block size, default BBSIZE
# sb superblock size, default SBSIZE
# o[a-h] partition offsets in sectors
# p[a-h] partition sizes in sectors
# b[a-h] partition block sizes in bytes
# f[a-h] partition fragment sizes in bytes
# t[a-h] partition types (filesystem, swap, etc)
#

View File

@ -0,0 +1,68 @@
# $NetBSD: dot.profile,v 1.1 2003/10/19 03:37:16 matt Exp $
#
# Copyright (c) 2003 John Gordon
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed for the
# NetBSD Project. See http://www.netbsd.org/ for
# information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
TERM=vt100
export TERM
HOME=/
export HOME
umask 022
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
export DONEPROFILE
# set up some sane defaults
echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T'
stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 9600
# mount root read-write
mount -u /dev/md0a /
# mount a /tmp on mfs, to avoid filling the md
mount -t mfs swap /tmp
# get the terminal type
_forceloop=""
while [ "X${_forceloop}" = X"" ]; do
eval `tset -s -m ":?$TERM"`
if [ "X${TERM}" != X"unknown" ]; then
_forceloop="done"
fi
done
fi

View File

@ -0,0 +1,82 @@
# $NetBSD: list,v 1.1 2003/10/19 03:37:16 matt Exp $
SRCDIRS bin sbin usr.bin usr.sbin
PROG bin/cat
PROG bin/chmod
PROG bin/cp
PROG bin/dd
PROG bin/df
PROG bin/ed
PROG bin/ln
PROG bin/ls
PROG bin/mkdir
PROG bin/mt
PROG bin/mv
PROG bin/pax usr/bin/tar
PROG bin/pwd
PROG bin/rcmd
PROG bin/rcp
PROG bin/rm
PROG bin/sh
PROG bin/stty
PROG bin/sync
PROG sbin/dmesg
PROG sbin/ifconfig
PROG sbin/init
PROG sbin/mknod
PROG sbin/mount
PROG sbin/mount_ffs
PROG sbin/mount_nfs
PROG sbin/newfs sbin/mount_mfs
PROG sbin/ping
PROG sbin/ping6
PROG sbin/reboot sbin/halt
PROG sbin/restore sbin/rrestore
PROG sbin/route
PROG sbin/rtsol
PROG sbin/shutdown
PROG sbin/swapctl
PROG sbin/umount
PROG usr/bin/ftp
PROG usr/bin/gzip usr/bin/gzcat usr/bin/gunzip
PROG usr/bin/more
PROG usr/bin/sed
PROG usr/bin/tset
PROG usr/sbin/chown usr/bin/chgrp
PROG usr/sbin/chroot
# init invokes the shell as -sh
ARGVLN sh -sh
SPECIAL dmesg srcdir distrib/utils/x_dmesg
SPECIAL ed srcdir distrib/utils/x_ed
SPECIAL gzip srcdir distrib/utils/x_gzip
SPECIAL ifconfig srcdir distrib/utils/x_ifconfig
SPECIAL more srcdir distrib/utils/more
SPECIAL ping srcdir distrib/utils/x_ping
SPECIAL ping6 srcdir distrib/utils/x_ping6
SPECIAL route srcdir distrib/utils/x_route
SPECIAL umount srcdir distrib/utils/x_umount
LIBS libhack.o -ledit -lutil -lcurses -ltermcap -lrmt -ll -lm -lz
# various files that we need in /etc for the install
COPY ${NETBSDSRCDIR}/etc/group etc/group
COPY ${NETBSDSRCDIR}/etc/master.passwd etc/master.passwd
COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig
COPY ${NETBSDSRCDIR}/etc/protocols etc/protocols
COPY ${NETBSDSRCDIR}/etc/services etc/services
# and the common installation tools
COPY ${CURDIR}/termcap.src usr/share/misc/termcap
# and the disktab explanation file
COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
# and the boot script
COPY ${CURDIR}/dot.profile .profile
MTREE ./.profile type=file uname=root gname=wheel mode=0644

View File

@ -0,0 +1,61 @@
dumb|80-column dumb tty:\
:am:\
:co#80:\
:bl=^G:cr=^M:do=^J:sf=^J:
unknown|unknown terminal type:\
:gn:tc=dumb:
lpr|printer|line printer:\
:bs:hc:os:\
:co#132:li#66:\
:bl=^G:cr=^M:do=^J:ff=^L:le=^H:sf=^J:
glasstty|classic glass tty interpreting ASCII control characters:\
:am:\
:co#80:\
:bl=^G:cl=^L:cr=^M:do=^J:kb=^H:kd=^J:kl=^H:le=^H:nw=^M^J:\
:ta=^I:
vt52|dec vt52:\
:bs:\
:co#80:it#8:li#24:\
:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
:ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\
:cr=^M:do=\EB:ho=\EH:kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:\
:le=\ED:nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:
vt100|vt100-am|dec vt100 (w/advanced video):\
:am:bs:ms:xn:xo:\
:co#80:it#8:li#24:vt#3:\
:@8=\EOM:DO=\E[%dB:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:\
:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
:ae=\E(B:as=\E(0:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:do=^J:\
:eA=\E(B:ho=\E[H:k0=\EOy:k1=\EOP:k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:\
:kP=\E[5~:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:\
:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:ml=\El:\
:mr=\E[7m:mu=\Em:nd=\E[C:\
:r2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:rc=\E8:\
:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:\
:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:\
:us=\E[4m:
xterm|vs100|xterms|xterm terminal emulator (X Window System):\
:tc=xterm-r6:

View File

@ -0,0 +1,2 @@
# $NetBSD: md.ibmnws,v 1.1 2003/10/19 03:37:16 matt Exp $
./usr/sbin/ncdcs base-sysutil-root

View File

@ -0,0 +1,51 @@
# $NetBSD: md.ibmnws,v 1.1 2003/10/19 03:37:16 matt Exp $
./usr/include/ibmnws comp-c-include
./usr/include/ibmnws/ansi.h comp-c-include
./usr/include/ibmnws/aout_machdep.h comp-c-include
./usr/include/ibmnws/asm.h comp-c-include
./usr/include/ibmnws/bat.h comp-c-include
./usr/include/ibmnws/bswap.h comp-c-include
./usr/include/ibmnws/bus.h comp-c-include
./usr/include/ibmnws/cdefs.h comp-c-include
./usr/include/ibmnws/cpu.h comp-c-include
./usr/include/ibmnws/db_machdep.h comp-c-include
./usr/include/ibmnws/disklabel.h comp-c-include
./usr/include/ibmnws/elf_machdep.h comp-c-include
./usr/include/ibmnws/endian.h comp-c-include
./usr/include/ibmnws/endian_machdep.h comp-c-include
./usr/include/ibmnws/float.h comp-c-include
./usr/include/ibmnws/fpu.h comp-c-include
./usr/include/ibmnws/frame.h comp-c-include
./usr/include/ibmnws/ieee.h comp-c-include
./usr/include/ibmnws/ieeefp.h comp-c-include
./usr/include/ibmnws/int_const.h comp-c-include
./usr/include/ibmnws/int_fmtio.h comp-c-include
./usr/include/ibmnws/int_limits.h comp-c-include
./usr/include/ibmnws/int_mwgwtypes.h comp-c-include
./usr/include/ibmnws/int_types.h comp-c-include
./usr/include/ibmnws/intr.h comp-c-include
./usr/include/ibmnws/kcore.h comp-c-include
./usr/include/ibmnws/limits.h comp-c-include
./usr/include/ibmnws/lock.h comp-c-include
./usr/include/ibmnws/math.h comp-c-include
./usr/include/ibmnws/mcontext.h comp-c-include
./usr/include/ibmnws/param.h comp-c-include
./usr/include/ibmnws/pcb.h comp-c-include
./usr/include/ibmnws/pmap.h comp-c-include
./usr/include/ibmnws/pmc.h comp-c-include
./usr/include/ibmnws/powerpc.h comp-c-include
./usr/include/ibmnws/proc.h comp-c-include
./usr/include/ibmnws/profile.h comp-c-include
./usr/include/ibmnws/psl.h comp-c-include
./usr/include/ibmnws/pte.h comp-c-include
./usr/include/ibmnws/ptrace.h comp-c-include
./usr/include/ibmnws/reg.h comp-c-include
./usr/include/ibmnws/reloc.h comp-c-include
./usr/include/ibmnws/setjmp.h comp-c-include
./usr/include/ibmnws/signal.h comp-c-include
./usr/include/ibmnws/stdarg.h comp-c-include
./usr/include/ibmnws/trap.h comp-c-include
./usr/include/ibmnws/types.h comp-c-include
./usr/include/ibmnws/varargs.h comp-c-include
./usr/include/ibmnws/vmparam.h comp-c-include
./usr/include/ieeefp.h comp-c-include

View File

@ -0,0 +1,3 @@
# $NetBSD: md.ibmnws,v 1.1 2003/10/19 03:37:16 matt Exp $
./usr/share/man/cat8/ncdcs.0 man-sysutil-catman
./usr/share/man/man8/ncdcs.8 man-sysutil-man