Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/hpcsh build kernel with ramdisk attached. PR 16979
details: https://anonhg.NetBSD.org/src/rev/01224b4f8761
branches: trunk
changeset: 533497:01224b4f8761
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Jul 02 04:14:36 2002 +0000
description:
build kernel with ramdisk attached. PR 16979
diffstat:
distrib/hpcsh/Makefile | 30 ++++++++++++-
distrib/hpcsh/miniroot/Makefile.inc | 13 ++++++
distrib/hpcsh/miniroot/dot.profile | 74 ++++++++++++++++++++++++++++++++++++
distrib/hpcsh/miniroot/list | 43 ++++++++++++++++++++
distrib/hpcsh/miniroot/termcap.vt100 | 29 ++++++++++++++
5 files changed, 185 insertions(+), 4 deletions(-)
diffs (212 lines):
diff -r 014843426e99 -r 01224b4f8761 distrib/hpcsh/Makefile
--- a/distrib/hpcsh/Makefile Tue Jul 02 02:18:01 2002 +0000
+++ b/distrib/hpcsh/Makefile Tue Jul 02 04:14:36 2002 +0000
@@ -1,7 +1,29 @@
-# $NetBSD: Makefile,v 1.1 2002/06/26 12:30:52 itojun Exp $
+# $NetBSD: Makefile,v 1.2 2002/07/02 04:14:36 itojun Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
-# No install stuff yet.
+.include <bsd.kernobj.mk>
+
+MINIROOTOBJ!= cd ${.CURDIR}/../miniroot && ${PRINTOBJDIR}
+MINIROOT= ${MINIROOTOBJ}/miniroot.fs
+
+MDSETTARGETS= RAMDISK ${MINIROOT} netbsd
+MDSET_RELEASEDIR= installation
-release:
+HPCBOOTDIR= ${KERNSRCDIR}/arch/hpc/stand
+HPCBOOT_SH3= ${HPCBOOTDIR}/binary/SH3/hpcboot.exe.uu
+HPCBOOT_SH4= ${HPCBOOTDIR}/binary/SH4/hpcboot.exe.uu
-.include <bsd.subdir.mk>
+release:: check_RELEASEDIR .WAIT ${HPCBOOT_SH3} ${HPCBOOT_SH4}
+ (cd ${RELEASEDIR}/installation; rm -f hpcboot-sh3.exe; \
+ ${UUDECODE} -p ${HPCBOOT_SH3} >hpcboot-sh3.exe ; \
+ chmod ${NONBINMODE} hpcboot-sh3.exe)
+ (cd ${RELEASEDIR}/installation; rm -f hpcboot-sh4.exe; \
+ ${UUDECODE} -p ${HPCBOOT_SH4} >hpcboot-sh4.exe ; \
+ chmod ${NONBINMODE} hpcboot-sh4.exe)
+ ${MAKESUMS} -t ${RELEASEDIR}/installation '*.gz' '*.exe'
+
+.include "${DISTRIBDIR}/common/Makefile.mdset"
+
+.include <bsd.prog.mk>
diff -r 014843426e99 -r 01224b4f8761 distrib/hpcsh/miniroot/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcsh/miniroot/Makefile.inc Tue Jul 02 04:14:36 2002 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile.inc,v 1.1 2002/07/02 04:14:37 itojun Exp $
+
+DBG= -O
+
+IMAGESIZE= 4m
+MAKEFS_FLAGS= -o density=2k
+IMAGEENDIAN= le
+MAKEDEVTARGETS= all
+#LISTS+= ${DISTRIBDIR}/common/list.sysinst
+MTREECONF+= ${.CURDIR}/mtree.usr.install
+IMAGEDEPENDS+= ${ARCHDIR}/dot.profile ${ARCHDIR}/termcap.vt100 \
+ ${DESTDIR}/.profile ${DESTDIR}/etc/disktab \
+ ${DESTDIR}/etc/spwd.db
diff -r 014843426e99 -r 01224b4f8761 distrib/hpcsh/miniroot/dot.profile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcsh/miniroot/dot.profile Tue Jul 02 04:14:36 2002 +0000
@@ -0,0 +1,74 @@
+# $NetBSD: dot.profile,v 1.1 2002/07/02 04:14:37 itojun Exp $
+#
+# Copyright (c) 1997 Perry E. Metzger
+# 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
+BLOCKSIZE=1k
+export BLOCKSIZE
+EDITOR=ed
+export EDITOR
+
+umask 022
+
+ROOTDEV=/dev/md0a
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+ DONEPROFILE=YES
+ export DONEPROFILE
+
+ # set up some sane defaults
+ echo 'erase ^?, werase ^W, kill ^U, intr ^C'
+ stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
+ echo ''
+
+ # mount the ramdisk read write
+ mount -u $ROOTDEV /
+
+ # mount the kern_fs so that we can examine the dmesg state
+ mount -t kernfs /kern /kern
+
+ # pull in the functions that people will use from the shell prompt.
+ # . /.commonutils
+ # . /.instutils
+ dmesg() cat /kern/msgbuf
+ grep() sed -n "/$1/p"
+
+ # run the installation or upgrade script.
+ # sysinst XXX
+fi
diff -r 014843426e99 -r 01224b4f8761 distrib/hpcsh/miniroot/list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcsh/miniroot/list Tue Jul 02 04:14:36 2002 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: list,v 1.1 2002/07/02 04:14:38 itojun Exp $
+
+# extras in bin
+#PROG bin/csh
+PROG bin/date
+PROG bin/rcp
+PROG bin/rcmd
+
+# extras in sbin
+PROG sbin/disklabel
+PROG sbin/fdisk
+PROG sbin/mount_ext2fs
+PROG sbin/fsck_ext2fs
+PROG sbin/mount_kernfs
+PROG sbin/mount_msdos
+
+# extras in /usr.bin
+#PROG usr/bin/netstat
+PROG usr/bin/rsh
+#PROG usr/bin/tset usr/bin/reset
+#PROG usr/bin/vi
+
+# crunchgen source directory specials: progs built in nonstandard places
+#SPECIAL vi srcdir usr.bin/vi/build
+
+# Minimize use of MFS
+SYMLINK /tmp var/tmp
+
+# termcap file
+COPY ${ARCHDIR}/termcap.vt100 usr/share/misc/termcap
+
+# various files that we need in /etc for the install
+COPY ${DESTDIR}/etc/spwd.db etc/spwd.db
+LINK etc/spwd.db etc/pwd.db
+
+# sysinst needs disktab template
+COPY ${DESTDIR}/etc/disktab etc/disktab.preinstall
+
+# and the installation tools
+COPY ${ARCHDIR}/dot.profile .profile
+
+# and a spare .profile
+COPY ${DESTDIR}/.profile tmp/.hdprofile
diff -r 014843426e99 -r 01224b4f8761 distrib/hpcsh/miniroot/termcap.vt100
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/hpcsh/miniroot/termcap.vt100 Tue Jul 02 04:14:36 2002 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: termcap.vt100,v 1.1 2002/07/02 04:14:38 itojun Exp $
+#
+# termcap for vt100 console(wscons)
+# From:
+######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
+#
+# Version 9.13.25
+# termcap syntax
+#
+# Eric S. Raymond (current maintainer)
+# John Kunze, Berkeley
+# Craig Leres, Berkeley
+#
+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:\
+ :kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
+ :ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:\
+ :nd=\E[C:r2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:\
+ :..sa=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;:\
+ :sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:\
+ :up=\E[A:us=\E[4m:
Home |
Main Index |
Thread Index |
Old Index