NetBSD/distrib/sun3/common/rd_bin.conf

88 lines
2.6 KiB
Plaintext
Raw Normal View History

#
2001-07-27 02:47:34 +04:00
# $NetBSD: rd_bin.conf,v 1.6 2001/07/26 22:47:34 wiz Exp $
#
# common/rd_bin.conf - unified binary for the ramdisk.
#
# The ramdisk root has to stay small enough so the kernel
# can be loaded in less than one megabyte of ram, including
# uninitialized data (bss). Otherwise it will not work on
# the Sun3/50. This is not too hard, because the ONLY
# tools needed in this root are those that one might use
# to initialize the disk label and copy a miniroot image
2001-07-27 02:47:34 +04:00
# into the swap partition. Everything else is done after
# the machine is rebooted from the miniroot.
#
# Note that the "ln" directives below are not really about
# filesystem links, but rather the ability of the resulting
# crunched binary to select the right program when argv[0]
# matches the names on right of the "ln prog" directive.
# For example, the shell can be run with argv[0]="-sh"
# (login shell convention) but no such file will exist.
# Similarly, one may want to run "init" as "oinit"...
#
# Notes about what is included (or not) and why:
#
# Include mknod incase I forgot some device nodes...
# Support copying miniroot from NFS, TFTP, or CDROM.
# Need mount_ffs, mount_ufs to remount the ramdisk.
#
# Might use cat to look at files (it's small anyway).
# Need for copying miniroot from tape: dd, mt
# Keep to allow minor fixes: ln, mkdir, mv
# Small and handy: cat, echo, pwd, sync
#
# Note: ssh has no "if", so "test" is useless. Also,
# left out: cp, chmod, rm. The ramdisk does not really
# need them, and they pull in fts_* from libc.
#
# Might use these to get the miniroot: rsh, tftp
#
# Assume gunzip can run elsewhere, i.e.:
# rsh gzcat sun3.miniroot.gz
# No need to extract archives either...
#
#
# Here are all the programs, ordered by source location:
# Special programs used to save space...
1995-11-22 00:18:48 +03:00
srcdirs distrib/utils
progs init ssh ls zcat
special init srcdir distrib/utils/init_s
special ls srcdir distrib/utils/tls
ln init oinit
ln ssh sh
ln ssh -sh # login shell (not actual file name)
1996-10-09 04:13:36 +04:00
# These are built with special flags to save a little space.
progs dd ifconfig mount route umount
special dd srcdir distrib/utils/x_dd
special ifconfig srcdir distrib/utils/x_ifconfig
special mount srcdir distrib/utils/x_mount
special route srcdir distrib/utils/x_route
special umount srcdir distrib/utils/x_umount
1995-11-22 00:18:48 +03:00
srcdirs sbin
progs edlabel mknod
progs mount_cd9660 mount_ffs mount_nfs
progs reboot
ln mount_ffs ffs mount_ufs ufs
ln mount_nfs nfs
ln mount_cd9660 cd9660
ln reboot halt
1995-11-22 00:18:48 +03:00
srcdirs bin
progs cat echo ln mkdir mt mv pwd sync
1995-11-22 00:18:48 +03:00
srcdirs usr.bin
1997-12-13 01:37:19 +03:00
progs rsh
# progs tftp
1995-11-22 00:18:48 +03:00
# srcdirs usr.sbin
1995-11-22 00:18:48 +03:00
# srcdirs gnu/usr.bin
# progs cpio, gzip, tar
# ln gzip gzcat gunzip
1997-12-13 01:37:19 +03:00
libs libhack.o -lrmt -lutil -lz