NetBSD/distrib/sun2/ramdisk/list

107 lines
3.0 KiB
Plaintext
Raw Normal View History

2001-05-18 04:16:36 +04:00
#
# $NetBSD: list,v 1.12 2020/10/04 23:50:59 rin Exp $
2001-05-18 04:16:36 +04:00
#
# ramdisk/list - packing list for the ramdisk.
2001-05-18 04:16:36 +04:00
#
# 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 Sun2/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
2001-05-18 04:16:36 +04:00
# 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.
2002-05-19 17:13:39 +04:00
# Need mount_ffs to remount the ramdisk.
2001-05-18 04:16:36 +04:00
#
# 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 sun2.miniroot.gz
# No need to extract archives either...
#
SRCDIRS bin sbin usr.bin distrib/utils
2001-05-18 04:16:36 +04:00
# From /usr/src/distrib/utils:
PROG bin/dd
PROG bin/tls bin/ls
PROG bin/rsh
PROG bin/ssh bin/sh bin/-sh
# PROG bin/tftp
2002-05-19 17:13:39 +04:00
PROG sbin/edlabel
PROG sbin/ifconfig
PROG sbin/init
PROG sbin/route
2001-05-18 04:16:36 +04:00
# From /usr/src/sbin:
PROG sbin/mknod
PROG sbin/mount
# PROG sbin/mount_cd9660
PROG sbin/mount_ffs
# PROG sbin/mount_nfs
2002-05-19 17:13:39 +04:00
PROG sbin/reboot sbin/halt
PROG sbin/umount
# From /usr/src/bin:
PROG bin/cat
# PROG bin/chmod
# PROG bin/cp
PROG bin/echo
PROG bin/ln
PROG bin/mkdir
PROG bin/mt
PROG bin/mv
PROG bin/pwd
2002-05-19 17:13:39 +04:00
PROG bin/rcmd
# PROG bin/rm
PROG bin/sync
PROG bin/zcat
2001-05-18 04:16:36 +04:00
LIBS libhack.o -lrmt -lutil -lz -lprop
2001-05-18 04:16:36 +04:00
# These are built with special flags to save a little space.
2002-05-19 17:13:39 +04:00
SPECIAL ifconfig srcdir distrib/utils/x_ifconfig
SPECIAL tls srcdir distrib/utils/tls
2002-05-19 17:13:39 +04:00
SPECIAL route srcdir distrib/utils/x_route
SPECIAL ssh srcdir distrib/utils/ssh
SPECIAL umount srcdir distrib/utils/x_umount
SPECIAL edlabel srcdir distrib/utils/edlabel
2001-05-18 04:16:36 +04:00
# various files that we need in /etc for the install
COPY ${CURDIR}/fstab etc/fstab
COPY ${CURDIR}/passwd etc/passwd
COPY ${CURDIR}/protocols etc/protocols
COPY ${DISTRIBDIR}/common/services etc/services
COPY ${CURDIR}/sshrc .sshrc
COPY ${CURDIR}/welcome .welcome
2001-05-18 04:16:36 +04:00
COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig
2001-05-18 04:16:36 +04:00
# Fake /usr
2002-05-19 17:13:39 +04:00
SYMLINK . usr
2001-05-18 04:16:36 +04:00
# Shell lacks pipe support, so use this.
CMD mkfifo dev/pipe