Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/evbsh3/rom evbsh3's ramdisk dirs to make ROM image.



details:   https://anonhg.NetBSD.org/src/rev/4ed8e5361f3b
branches:  trunk
changeset: 497063:4ed8e5361f3b
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Sep 18 07:21:01 2000 +0000

description:
evbsh3's ramdisk dirs to make ROM image.
This is example.

diffstat:

 distrib/evbsh3/rom/Makefile.inc                  |    8 +
 distrib/evbsh3/rom/list2sh.awk                   |   55 +++++++++
 distrib/evbsh3/rom/ramdiskcommon/list            |  135 +++++++++++++++++++++++
 distrib/evbsh3/rom/ramdiskcommon/mtree.conf      |  104 +++++++++++++++++
 distrib/evbsh3/rom/ramdiskcommon/ramdiskbin.conf |   95 ++++++++++++++++
 distrib/evbsh3/rom/ramdiskcommon/shells          |    1 +
 distrib/evbsh3/rom/ramdiskeb/Makefile            |   91 +++++++++++++++
 distrib/evbsh3/rom/ramdiskel/Makefile            |   91 +++++++++++++++
 distrib/evbsh3/rom/runlist.sh                    |   13 ++
 9 files changed, 593 insertions(+), 0 deletions(-)

diffs (truncated from 629 to 300 lines):

diff -r 30d0c3eb8324 -r 4ed8e5361f3b distrib/evbsh3/rom/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/rom/Makefile.inc   Mon Sep 18 07:21:01 2000 +0000
@@ -0,0 +1,8 @@
+#      $NetBSD: Makefile.inc,v 1.1 2000/09/18 07:21:01 msaitoh Exp $
+
+.include "../../../Makefile.inc"
+
+# REV is revision without dots, as in "12C"
+# VER is revision with dots, as in "1.2C"
+REV!=sh ${BSDSRCDIR}/sys/conf/osrelease.sh -s
+VER!=sh ${BSDSRCDIR}/sys/conf/osrelease.sh 
diff -r 30d0c3eb8324 -r 4ed8e5361f3b distrib/evbsh3/rom/list2sh.awk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/rom/list2sh.awk    Mon Sep 18 07:21:01 2000 +0000
@@ -0,0 +1,55 @@
+#      $NetBSD: list2sh.awk,v 1.1 2000/09/18 07:21:01 msaitoh Exp $
+
+BEGIN {
+       printf("cd ${CURDIR}\n");
+       printf("\n");
+}
+/^$/ || /^#/ {
+       print $0;
+       next;
+}
+$1 == "COPY" {
+       printf("echo '%s'\n", $0);
+       printf("rm -f ${TARGDIR}/%s\n", $3);
+       printf("cp %s ${TARGDIR}/%s\n", $2, $3);
+       next;
+}
+$1 == "LINK" {
+       printf("echo '%s'\n", $0);
+       printf("rm -f ${TARGDIR}/%s\n", $3);
+       printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
+       next;
+}
+$1 == "SYMLINK" {
+       printf("echo '%s'\n", $0);
+       printf("rm -f ${TARGDIR}/%s\n", $3);
+       printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3);
+       next;
+}
+$1 == "COPYDIR" {
+       printf("echo '%s'\n", $0);
+       printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n",
+           $3);
+       printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2,
+           $3);
+       next;
+}
+$1 == "SPECIAL" {
+       printf("echo '%s'\n", $0);
+       printf("(cd ${TARGDIR};");
+       for (i = 2; i <= NF; i++)
+               printf(" %s", $i);
+       printf(")\n");
+       next;
+}
+{
+       printf("echo '%s'\n", $0);
+       printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR);
+       printf("exit 1\n");
+       exit 1;
+}
+END {
+       printf("\n");
+       printf("exit 0\n");
+       exit 0;
+}
diff -r 30d0c3eb8324 -r 4ed8e5361f3b distrib/evbsh3/rom/ramdiskcommon/list
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/rom/ramdiskcommon/list     Mon Sep 18 07:21:01 2000 +0000
@@ -0,0 +1,135 @@
+#      $NetBSD: list,v 1.1 2000/09/18 07:21:02 msaitoh Exp $
+
+# various files that we need in /etc for the install
+COPY   ${CURDIR}/../../../../etc/master.passwd         etc/master.passwd
+#COPY  ${CURDIR}/../../../../etc/etc.evbsh3/rc         etc/rc
+COPY   ${CURDIR}/../../../../etc/group                 etc/group
+COPY   ${CURDIR}/../../../../etc/protocols             etc/protocols
+COPY   ${CURDIR}/../../../../etc/services              etc/services
+COPY   ${CURDIR}/../../../../etc/gettytab                      etc/gettytab
+#COPY  ${CURDIR}/localtime                             etc/localtime
+COPY   ${CURDIR}/../../../../etc/hosts                 etc/hosts
+COPY   ${CURDIR}/../../../../etc/etc.evbsh3/ttys       etc/ttys
+COPY   ${CURDIR}/../ramdiskcommon/shells               etc/shells
+#COPY  ${CURDIR}/dot.profile                           etc/.profile
+#COPY  ${CURDIR}/termcap.mini                          usr/share/misc/termcap
+#COPY  ${CURDIR}/kvm.db                                var/db/kvm.db
+
+#SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
+#SPECIAL /bin/mv etc/master.passwd boot.evbsh3/master.passwd
+#SPECIAL /bin/mv etc/passwd boot.evbsh3/passwd
+#SPECIAL /bin/rm etc/spwd.db
+#SPECIAL /bin/rm etc/pwd.db
+#SPECIAL /bin/rm etc/master.passwd
+#SPECIAL /bin/rm -r etc
+
+#SYMLINK /mfs/home                     home
+
+#SPECIAL ( cd ${CURDIR}/../../../evbsh3/ucd-snmp/mibs/ ; tar --exclude CVS -cf - *.txt ) | ( cd usr/share/snmp/mibs/ ; tar xf - )
+
+# copy the MAKEDEV script and make some devices
+COPY   ${CURDIR}/../../../../etc/etc.evbsh3/MAKEDEV    dev/MAKEDEV
+SPECIAL        cd dev; sh MAKEDEV ramdisk
+SPECIAL /bin/rm dev/MAKEDEV
+
+#COPY  ${CURDIR}/../../../../etc/etc.evbsh3/ipf_supfail.conf boot.evbsh3/ipf_supfail.conf
+#COPY  ${CURDIR}/../../../../etc/etc.evbsh3/syslog.conf        boot.evbsh3/syslog.conf
+
+#SPECIAL chmod 755                     etc/rc
+
+# copy the crunched binary, link to it, and kill it
+COPY   ${OBJDIR}/ramdiskbin            ramdiskbin
+SPECIAL chown 0:0                      ramdiskbin
+#SPECIAL chmod 4755                    ramdiskbin
+LINK   ramdiskbin                      bin/cat
+LINK   ramdiskbin                      bin/chmod
+LINK   ramdiskbin                      bin/cp
+LINK   ramdiskbin                      bin/date
+LINK   ramdiskbin                      bin/dd
+LINK   ramdiskbin                      bin/df
+LINK   ramdiskbin                      bin/echo
+LINK   ramdiskbin                      bin/ed
+LINK   ramdiskbin                      bin/expr
+LINK   ramdiskbin                      bin/hostname
+LINK   ramdiskbin                      bin/kill
+LINK   ramdiskbin                      bin/ln
+LINK   ramdiskbin                      bin/ls
+LINK   ramdiskbin                      bin/mkdir
+LINK   ramdiskbin                      bin/mv
+LINK   ramdiskbin                      bin/ps
+LINK   ramdiskbin                      bin/rm
+LINK   ramdiskbin                      bin/rmdir
+LINK   ramdiskbin                      bin/pwd
+LINK   ramdiskbin                      bin/sh
+LINK   ramdiskbin                      bin/sleep
+LINK   ramdiskbin                      bin/stty
+LINK   ramdiskbin                      bin/sync
+LINK   ramdiskbin                      bin/test
+LINK   ramdiskbin                      bin/[
+LINK   ramdiskbin                      sbin/dmesg
+LINK   ramdiskbin                      sbin/ifconfig
+LINK   ramdiskbin                      sbin/halt
+LINK   ramdiskbin                      sbin/init
+LINK   ramdiskbin                      sbin/ping
+LINK   ramdiskbin                      sbin/reboot
+LINK   ramdiskbin                      sbin/route
+LINK   ramdiskbin                      sbin/mknod
+LINK   ramdiskbin                      sbin/mount
+LINK   ramdiskbin                      sbin/mount_ffs
+LINK   ramdiskbin                      sbin/mount_mfs
+#LINK  ramdiskbin                      sbin/mount_nfs
+LINK   ramdiskbin                      sbin/mount_kernfs
+LINK   ramdiskbin                      sbin/mount_procfs
+LINK   ramdiskbin                      sbin/shutdown
+LINK   ramdiskbin                      sbin/ttyflags
+LINK   ramdiskbin                      sbin/umount
+
+LINK   ramdiskbin                      usr/libexec/comsat
+LINK   ramdiskbin                      usr/libexec/fingerd
+LINK   ramdiskbin                      usr/libexec/ftpd
+LINK   ramdiskbin                      usr/libexec/getNAME
+LINK   ramdiskbin                      usr/libexec/getty
+LINK   ramdiskbin                      usr/libexec/identd
+
+LINK   ramdiskbin                      usr/bin/atrun
+LINK   ramdiskbin                      usr/bin/login
+LINK   ramdiskbin                      usr/bin/su
+LINK   ramdiskbin                      bin/netstat
+
+#LINK  ramdiskbin                      usr/bin/tftp
+LINK   ramdiskbin                      usr/bin/chgrp
+LINK   ramdiskbin                      usr/bin/fstat
+LINK   ramdiskbin                      usr/bin/ftp
+LINK   ramdiskbin                      usr/bin/hexdump
+LINK   ramdiskbin                      usr/bin/kdump
+LINK   ramdiskbin                      usr/bin/ktrace
+LINK   ramdiskbin                      usr/bin/telnet
+LINK   ramdiskbin                      usr/bin/time
+LINK   ramdiskbin                      bin/less
+LINK   ramdiskbin                      bin/more
+LINK   ramdiskbin                      bin/sort
+LINK   ramdiskbin                      usr/bin/vmstat
+LINK   ramdiskbin                      usr/bin/head
+LINK   ramdiskbin                      usr/bin/tail
+
+LINK   ramdiskbin                      sbin/arp
+LINK   ramdiskbin                      sbin/dev_mkdb
+LINK   ramdiskbin                      sbin/traceroute
+
+LINK   ramdiskbin                      usr/sbin/chown
+LINK   ramdiskbin                      usr/sbin/iostat
+LINK   ramdiskbin                      usr/sbin/pstat
+#LINK  ramdiskbin                      usr/sbin/rdate
+LINK   ramdiskbin                      usr/sbin/sysctl
+LINK   ramdiskbin                      usr/sbin/tcpdump
+
+#LINK  ramdiskbin                      bin/morse
+#LINK  ramdiskbin                      sbin/spppd
+LINK   ramdiskbin                      sbin/syslogd
+LINK   ramdiskbin                      sbin/telnetd
+#LINK  ramdiskbin                      sbin/flashwrite
+#LINK  ramdiskbin                      sbin/wdogctl
+#LINK  ramdiskbin                      sbin/ipl_getenv
+#LINK  ramdiskbin                      sbin/ipl_setenv
+
+#SPECIAL /bin/rm                       ramdiskbin
diff -r 30d0c3eb8324 -r 4ed8e5361f3b distrib/evbsh3/rom/ramdiskcommon/mtree.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/evbsh3/rom/ramdiskcommon/mtree.conf       Mon Sep 18 07:21:01 2000 +0000
@@ -0,0 +1,104 @@
+#      $NetBSD: mtree.conf,v 1.1 2000/09/18 07:21:02 msaitoh Exp $
+
+/set type=dir uname=root gname=wheel mode=0755
+# .
+.
+
+# ./bin
+bin
+# ./bin
+..
+
+# ./dev
+dev
+# ./dev
+..
+
+# ./etc
+etc
+# ./etc
+..
+
+# ./mnt
+mnt
+# ./mnt
+..
+
+# ./kern
+kern
+# ./kern
+..
+
+# ./proc
+proc
+# ./proc
+..
+
+# ./root
+root
+# ./root
+..
+
+# ./sbin
+sbin
+# ./sbin
+..
+
+# ./tmp
+#tmp             mode=01777
+# ./tmp
+#..
+
+# ./usr
+usr
+
+# ./usr/bin
+bin
+# ./usr/bin
+..
+
+# ./usr/sbin
+sbin
+# ./usr/sbin
+..
+
+# ./usr/libexec
+libexec
+# ./usr/libexec
+..
+
+# ./usr/share
+share
+
+# ./usr/share/misc
+misc
+# ./usr/share/misc
+..
+
+# ./usr/share
+..
+
+# ./usr
+..
+
+# ./var
+var
+



Home | Main Index | Thread Index | Old Index