-# $NetBSD: Makefile.inc,v 1.5 1995/10/13 21:44:11 gwr Exp $
+# $NetBSD: Makefile.inc,v 1.5.2.1 1995/11/18 06:47:31 gwr Exp $
.if defined(SA_PROG)
RELOC?= 240000
DEFS?= -DSTANDALONE
INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
-COPTS?= -msoft-float ${DEFS} ${INCL}
+COPTS?= -msoft-float ${DEFS} ${DBG} ${INCL}
LIBSA?= ../libsa
SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
-LIBS?= ${LIBSA}/libsa.a
+SRTLIB?= ${LIBSA}/libsa.a
+
MDEC_DIR?=/usr/mdec
SRCS?= ${SA_PROG}.c
dd if=a.out ibs=32 skip=1 of=$@ obs=1k conv=osync
-rm -f a.out
-${SA_PROG} : ${SRTOBJ} ${OBJS} ${LIBS}
- ${LD} -N -T ${RELOC} -e start -o $@ ${SRTOBJ} ${OBJS} ${LIBS}
+${SA_PROG} : ${OBJS} ${DPADD}
+ ${LD} -N -T ${RELOC} -e start -o $@ \
+ ${SRTOBJ} ${OBJS} ${LDADD} ${SRTLIB}
@size $@
.if !target(clean)
-rm -f ${CLEANFILES} *.o
.endif
+.if !target(install)
+install: ${SA_PROG}.bin
+ install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
+.endif
+
.endif
-/* $NetBSD: README,v 1.2 1995/08/12 18:38:30 gwr Exp $ */
+/* $NetBSD: README,v 1.2.2.1 1995/11/18 06:47:34 gwr Exp $ */
The sun bootblocks are split into two parts: a small 1st-level program that
gets written right after the superblock in a partition (and is hence limited
boot program:
mount /dev/sd0a /mnt
- installboot /mnt/ufsboot bootxx /dev/rsd0a
+ cd /usr/mdec
+ cp -p ufsboot /mnt/ufsboot
+ sync ; sleep 1 ; sync
+ ./installboot -v /mnt/ufsboot bootxx /dev/rsd0a
The above only works with securelevel <= 0 (see init.8 manual).
-# $NetBSD: Makefile,v 1.2 1995/06/09 22:17:19 gwr Exp $
+# $NetBSD: Makefile,v 1.2.2.1 1995/11/18 06:47:36 gwr Exp $
SA_PROG= bootxx
SRCS= bootxx.c conf.c
all: ${SA_PROG}
-.include <bsd.prog.mk>
-
# Do not strip or remove a.out header for this one.
install: ${SA_PROG}
install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${SA_PROG} ${DESTDIR}${MDEC_DIR}/${SA_PROG}
+.include <bsd.prog.mk>
+
-.\" $Id: installboot.8,v 1.1.1.1 1995/10/18 08:51:57 deraadt Exp $
+.\" $Id: installboot.8,v 1.2 1995/11/19 13:53:12 deraadt Exp $
.\"
.Dd 31 May 1995
.Dt INSTALLBOOT 8
.Nm securelevel
variable set to a value greater than zero (the default), so
.Nm installboot
-only works in single-user mode (or insecure mode - see init.8).
+only works in single-user mode (or insecure mode - see
+.Xr init 8 ).
.Sh "SEE ALSO"
-.Xr disklabel 8
+.Xr disklabel 8 ,
.Xr init 8
-/* $NetBSD: installboot.c,v 1.4 1995/11/07 23:01:40 gwr Exp $ */
+/* $NetBSD: installboot.c,v 1.3.2.2 1995/11/18 06:47:40 gwr Exp $ */
/*
* Copyright (c) 1994 Paul Kranenburg
* Open 2nd-level boot program and record the block numbers
* it occupies on the filesystem represented by `devfd'.
*/
+
+ /* Make sure the (probably new) boot file is on disk. */
+ sync(); sleep(1);
+
if ((fd = open(boot, O_RDONLY)) < 0)
err(1, "open: %s", boot);
-# $NetBSD: Makefile,v 1.8 1995/09/23 03:42:34 gwr Exp $
+# $NetBSD: Makefile,v 1.8.2.1 1995/11/18 06:47:43 gwr Exp $
LIB=sa
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_sun3} ${SRC_here}
+CLEANFILES+= SRT0.o SRT1.o
+
# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
-DEFS= -DCOMPAT_UFS
+DEFS= -DSTANDALONE -DCOMPAT_UFS
INCL= -I${.CURDIR} -I${S}/lib/libsa -I${S}
COPTS= -msoft-float
CFLAGS= -O ${COPTS} ${DEFS} ${DBG} ${INCL}
-# $NetBSD: Makefile,v 1.3 1995/09/23 03:42:47 gwr Exp $
+# $NetBSD: Makefile,v 1.3.2.1 1995/11/18 06:47:45 gwr Exp $
SA_PROG= netboot
SRCS= boot.c conf.c version.c dev_net.c
-DEFS= -DSUN_BOOTPARAMS
+DEFS= -DSTANDALONE -DSUN_BOOTPARAMS
all: ${SA_PROG}.bin
.include <bsd.prog.mk>
-install: ${SA_PROG}.bin
- install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
-
-# $NetBSD: Makefile,v 1.2 1995/10/17 22:58:10 gwr Exp $
+# $NetBSD: Makefile,v 1.2.2.1 1995/11/18 06:47:47 gwr Exp $
SA_PROG= tapeboot
SRCS= boot.c conf.c rawfs.c dev_tape.c version.c
-# DEFS= -DDEBUG
-
all: ${SA_PROG}.bin
.include <bsd.prog.mk>
-install: ${SA_PROG}.bin
- install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
-
-# $NetBSD: Makefile,v 1.2 1995/06/09 22:24:06 gwr Exp $
+# $NetBSD: Makefile,v 1.2.2.1 1995/11/18 06:47:49 gwr Exp $
SA_PROG= ufsboot
SRCS= boot.c conf.c version.c
.include <bsd.prog.mk>
-install: ${SA_PROG}.bin
- install ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${SA_PROG}.bin ${DESTDIR}${MDEC_DIR}/${SA_PROG}
-