Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/dreamcast Build ramdisk kernel for dreamcast.
details: https://anonhg.NetBSD.org/src/rev/da053ebd3a84
branches: trunk
changeset: 538799:da053ebd3a84
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Oct 30 12:42:24 2002 +0000
description:
Build ramdisk kernel for dreamcast.
diffstat:
distrib/dreamcast/Makefile | 6 ++
distrib/dreamcast/instkernel/Makefile | 14 +++++
distrib/dreamcast/ramdisk/Makefile | 37 +++++++++++++
distrib/dreamcast/ramdisk/dot.profile | 92 ++++++++++++++++++++++++++++++++++
distrib/dreamcast/ramdisk/list | 82 ++++++++++++++++++++++++++++++
distrib/dreamcast/ramdisk/termcap.mini | 80 +++++++++++++++++++++++++++++
6 files changed, 311 insertions(+), 0 deletions(-)
diffs (truncated from 335 to 300 lines):
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/Makefile Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2002/10/30 12:42:24 tsutsui Exp $
+
+SUBDIR= ramdisk .WAIT instkernel
+TARGETS+= release
+
+.include <bsd.subdir.mk>
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/instkernel/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/instkernel/Makefile Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2002/10/30 12:42:24 tsutsui Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
+RAMDISK= ${RAMDISKDIR}/ramdisk.fs
+
+MDSETTARGETS= GENERIC_MD ${RAMDISK} -
+MDSET_RELEASEDIR= binary/kernel
+
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/ramdisk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/ramdisk/Makefile Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2002/10/30 12:42:25 tsutsui Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+IMAGE= ramdisk.fs
+IMAGESIZE= 1440k
+MAKEFS_FLAGS= -f 15
+
+WARNS= 1
+DBG= -O1 # XXX -Os might cause compiler bugs on sh3
+
+CRUNCHBIN= ramdiskbin
+CRUNCHGEN_FLAGS= -d "${DBG}"
+LISTS= ${.CURDIR}/list # ${DISTRIBDIR}/common/list.sysinst
+MTREECONF= ${DISTRIBDIR}/common/mtree.common
+IMAGEENDIAN= le
+MAKEDEVTARGETS= ramdisk
+IMAGEDEPENDS= ${CRUNCHBIN} \
+ dot.profile termcap.mini \
+ ${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>
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/ramdisk/dot.profile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/ramdisk/dot.profile Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,92 @@
+# $NetBSD: dot.profile,v 1.1 2002/10/30 12:42:25 tsutsui Exp $
+#
+# 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
+
+ # 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 /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
+
+ # Installing or upgrading?
+ _forceloop=""
+ while [ "X${_forceloop}" = X"" ]; do
+ echo -n '(I)nstall, (S)hell or (H)alt ? '
+ read _forceloop
+ case "$_forceloop" in
+ i*|I*)
+ # /sysinst
+ echo 'Sorry, sysinst is not ready on this port.'
+ /bin/sh
+ ;;
+
+ s*|S*)
+ /bin/sh
+ ;;
+
+ h*|H*)
+ /sbin/halt
+ ;;
+
+ *)
+ _forceloop=""
+ ;;
+ esac
+ done
+fi
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/ramdisk/list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/ramdisk/list Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,82 @@
+# $NetBSD: list,v 1.1 2002/10/30 12:42:25 tsutsui 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/disklabel
+PROG sbin/dmesg
+PROG sbin/fsck
+PROG sbin/fsck_ffs
+PROG sbin/ifconfig
+PROG sbin/init
+PROG sbin/mknod
+PROG sbin/mount
+PROG sbin/mount_cd9660
+PROG sbin/mount_ffs
+PROG sbin/mount_nfs
+PROG sbin/newfs sbin/mount_mfs
+PROG sbin/ping
+PROG sbin/reboot sbin/halt
+PROG sbin/restore sbin/rrestore
+PROG sbin/route
+PROG sbin/shutdown
+PROG sbin/slattach
+PROG sbin/swapctl sbin/swapon
+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 mount srcdir distrib/utils/x_mount
+SPECIAL ping srcdir distrib/utils/x_ping
+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.mini usr/share/misc/termcap
+
+# and the boot script
+COPY ${CURDIR}/dot.profile .profile
+MTREE ./.profile type=file uname=root gname=wheel mode=644
diff -r 760aff05c8ae -r da053ebd3a84 distrib/dreamcast/ramdisk/termcap.mini
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/dreamcast/ramdisk/termcap.mini Wed Oct 30 12:42:24 2002 +0000
@@ -0,0 +1,80 @@
+# $NetBSD: termcap.mini,v 1.1 2002/10/30 12:42:25 tsutsui Exp $
+#
+# Copyright (c) 1980, 1985, 1989 The Regents of the University of California.
+# 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 by the University of
+# California, Berkeley and its contributors.
+# 4. Neither the name of the University nor the names of its contributors
+# may be used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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.
+#
+# @(#)termcap.src 5.109 (Berkeley) 3/8/93
+#
+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:k2=\EOQ:k3=\EOR:\
+ :k4=\EOS:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:\
Home |
Main Index |
Thread Index |
Old Index