Minor cleanup
This commit is contained in:
parent
cc5eca4e4e
commit
2097445cb6
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Make.crunch,v 1.1.1.1 1995/10/08 23:07:46 gwr Exp $
|
||||
# $NetBSD: Make.crunch,v 1.2 1995/10/13 16:38:20 gwr Exp $
|
||||
#
|
||||
# This is included by subdirectories building a crunched binary.
|
||||
# Assume the following are already defined: TOP, CBIN
|
||||
|
@ -6,6 +6,10 @@
|
|||
CBIN?= xxx-crunched
|
||||
CRUNCHCONF= ${TOP}/common/${CBIN}.conf
|
||||
|
||||
CLEANFILES+= ${CBIN} ${CBIN}.c ${CBIN}.cache ${CBIN}.mk ${CBIN}.syms
|
||||
CLEANFILES+= *.lo *_stub.o *_stub.c
|
||||
|
||||
# Keep a copy that is not stripped so I can debug...
|
||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
||||
make -f ${CBIN}.mk all STRIP=true
|
||||
cp -p ${CBIN} ${CBIN}.syms
|
||||
|
@ -14,5 +18,3 @@ ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
|||
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
||||
crunchgen ${CRUNCHCONF}
|
||||
|
||||
CLEANFILES+= ${CBIN} ${CBIN}.mk ${CBIN}.cache *_stub.? *.lo
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#
|
||||
# $NetBSD: Make.fsimage,v 1.1.1.1 1995/10/08 23:07:46 gwr Exp $
|
||||
# $NetBSD: Make.fsimage,v 1.2 1995/10/13 16:38:26 gwr Exp $
|
||||
#
|
||||
|
||||
# TOP is assumed to be defined by Makefile including this one.
|
||||
# These will be defined by it too:
|
||||
|
||||
IMAGE?= xxx-${REV}.fs
|
||||
IMAGE?= xxx-${REV}
|
||||
CBIN?= xxx-crunched
|
||||
|
||||
TREE?= ${.CURDIR}/${CBIN}.tree
|
||||
|
@ -17,7 +17,7 @@ BDEV?= /dev/rd0
|
|||
CDEV?= /dev/rd0
|
||||
|
||||
IMAGE_DEPS?= ${CBIN}
|
||||
CLEANFILES+= ${IMAGE}
|
||||
CLEANFILES+= ${IMAGE}.fs
|
||||
|
||||
# These are all the parameters for the root fs:
|
||||
NBLKS?= 512
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: mr.etc.rc,v 1.2 1995/10/13 16:38:27 gwr Exp $
|
||||
|
||||
# This is run by /sbin/init as:
|
||||
# /bin/sh /etc/rc
|
||||
# Just force init to go single-user...
|
||||
|
||||
echo "$0: miniroot forces single-user mode..."
|
||||
echo "/etc/rc: miniroot forces single-user mode..."
|
||||
exit 1
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# Sun3 has no need for disktab (yet)
|
||||
# $NetBSD: rd.disktab,v 1.2 1995/10/13 16:38:29 gwr Exp $
|
||||
# The ramdisk has no need for disktab (yet)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# $NetBSD: rd.fstab,v 1.2 1995/10/13 16:38:31 gwr Exp $
|
||||
/dev/rd0 / ufs rw 1 1
|
||||
|
|
|
@ -1 +1 @@
|
|||
root::0:0:Charlie &:/root:/bin/sh
|
||||
root::0:0:NetBSD RAM-disk root:/root:/bin/sh
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# .sshrc
|
||||
# $NetBSD: rd.sshrc,v 1.2 1995/10/13 16:38:34 gwr Exp $
|
||||
path /sbin:/bin
|
||||
run cat /.welcome
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $NetBSD: rd_bin.list,v 1.1.1.1 1995/10/08 23:07:48 gwr Exp $
|
||||
# $NetBSD: rd_bin.list,v 1.2 1995/10/13 16:38:36 gwr Exp $
|
||||
#
|
||||
|
||||
# copy the crunched binary, link to it, and kill it
|
||||
|
@ -30,15 +30,15 @@ LINK rd_bin sbin/umount
|
|||
|
||||
# From /usr/src/bin:
|
||||
LINK rd_bin bin/cat
|
||||
LINK rd_bin bin/chmod
|
||||
LINK rd_bin bin/cp
|
||||
# LINK rd_bin bin/chmod
|
||||
# LINK rd_bin bin/cp
|
||||
LINK rd_bin bin/echo
|
||||
LINK rd_bin bin/ln
|
||||
LINK rd_bin bin/mkdir
|
||||
LINK rd_bin bin/mt
|
||||
LINK rd_bin bin/mv
|
||||
LINK rd_bin bin/pwd
|
||||
LINK rd_bin bin/rm
|
||||
# LINK rd_bin bin/rm
|
||||
LINK rd_bin bin/sync
|
||||
|
||||
SPECIAL rm rd_bin
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* $NetBSD: rdsetroot.c,v 1.2 1995/10/13 16:38:39 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
* All rights reserved.
|
||||
|
@ -24,7 +26,7 @@
|
|||
* (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: rdsetroot.c,v 1.1.1.1 1995/10/08 23:07:51 gwr Exp $
|
||||
* $Id: rdsetroot.c,v 1.2 1995/10/13 16:38:39 gwr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1995/10/08 23:07:53 gwr Exp $
|
||||
# $NetBSD: Makefile,v 1.2 1995/10/13 16:46:47 gwr Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
|
@ -40,6 +40,9 @@ do_bootxx:
|
|||
do_kernel:
|
||||
cp -p ${KERNEL} ${MOUNT_POINT}/netbsd
|
||||
|
||||
# Do not delete this if I change my mind and kill make...
|
||||
.PRECIOUS: ${IMAGE}.fs
|
||||
|
||||
# Rules used making ${IMAGE}.fs (do_*)
|
||||
.include "${TOP}/common/Make.fsimage"
|
||||
|
||||
|
@ -47,7 +50,8 @@ do_kernel:
|
|||
.include "${TOP}/common/Make.crunch"
|
||||
|
||||
clean cleandir:
|
||||
echo rm -f core ${CLEANFILES} *.o
|
||||
-rm -f a.out core *.core *.o
|
||||
-rm -f ${CLEANFILES}
|
||||
|
||||
# Standard rules needed by the above...
|
||||
.include <bsd.obj.mk>
|
||||
|
|
Loading…
Reference in New Issue