Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand add ustarboot, a ustar-capable unified ...



details:   https://anonhg.NetBSD.org/src/rev/70329d833544
branches:  trunk
changeset: 471486:70329d833544
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 02 09:13:27 1999 +0000

description:
add ustarboot, a ustar-capable unified bootstrap intended to be
mkbootimage'd and slapped on the front of a tar file.

diffstat:

 sys/arch/alpha/stand/Makefile             |   4 +-
 sys/arch/alpha/stand/ustarboot/Makefile   |  33 +++++++++++++++++++++++
 sys/arch/alpha/stand/ustarboot/newvers.sh |  44 +++++++++++++++++++++++++++++++
 sys/arch/alpha/stand/ustarboot/version    |   3 ++
 4 files changed, 82 insertions(+), 2 deletions(-)

diffs (104 lines):

diff -r 5c69edfad1a7 -r 70329d833544 sys/arch/alpha/stand/Makefile
--- a/sys/arch/alpha/stand/Makefile     Fri Apr 02 08:50:45 1999 +0000
+++ b/sys/arch/alpha/stand/Makefile     Fri Apr 02 09:13:27 1999 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 1999/04/02 08:40:23 cgd Exp $
+# $NetBSD: Makefile,v 1.11 1999/04/02 09:13:27 cgd Exp $
 
 SUBDIR=        boot bootxx installboot mkbootimage netboot setnetbootinfo \
-       bootxx_cd9660 bootxx_ffs
+       bootxx_cd9660 bootxx_ffs ustarboot
 
 .include <bsd.subdir.mk>
diff -r 5c69edfad1a7 -r 70329d833544 sys/arch/alpha/stand/ustarboot/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/alpha/stand/ustarboot/Makefile   Fri Apr 02 09:13:27 1999 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 1999/04/02 09:13:28 cgd Exp $
+
+PROG = ustarboot
+
+SRCS = start.S boot.c loadfile.c blkdev.c prom.c prom_disp.S OSFpal.c
+SRCS+= prom_swpal.S booted_dev.c
+
+BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS}
+
+CPPFLAGS += ${UNIFIED_CPPFLAGS} \
+               -DLIBSA_SINGLE_DEVICE=blkdev \
+                 -D"blkdevioctl(x,y,z)=EINVAL" \
+               -DLIBSA_SINGLE_FILESYSTEM=ustarfs
+
+CLEANFILES+= vers.c vers.o ${PROG}.sym
+
+${PROG}: ${PROG}.sym
+       @echo creating ${PROG} from ${PROG}.sym...
+       @objcopy --output-target=binary ${PROG}.sym ${PROG}
+       @chmod 644 ${PROG}
+       @ls -l ${PROG}
+       @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \
+           ${UNIFIED_MAX_TOTAL} || (rm -f ${PROG} ; false)
+
+SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=yes
+.include "../Makefile.bootprogs"
+
+${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+       sh ${.CURDIR}/newvers.sh ${.CURDIR}/version
+       ${COMPILE.c} vers.c
+       ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
+           ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
+       ${SIZE} ${PROG}.sym
diff -r 5c69edfad1a7 -r 70329d833544 sys/arch/alpha/stand/ustarboot/newvers.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/alpha/stand/ustarboot/newvers.sh Fri Apr 02 09:13:27 1999 +0000
@@ -0,0 +1,44 @@
+#!/bin/sh -
+#
+# $NetBSD: newvers.sh,v 1.1 1999/04/02 09:13:28 cgd Exp $
+#
+# Copyright (c) 1984, 1986, 1990, 1993
+#      The Regents of the University of California.  All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#      This product includes software developed by the University of
+#      California, Berkeley and its contributors.
+# 4. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+#      @(#)newvers.sh  8.1 (Berkeley) 4/20/94
+
+u=${USER-root} h=`hostname` t=`date`
+r=`head -1 $1 | awk ' { print $3 } '`
+
+echo "char bootprog_name[] = \"NetBSD/Alpha ustar Boot\";" > vers.c
+echo "char bootprog_rev[] = \"${r}\";" >> vers.c
+echo "char bootprog_date[] = \"${t}\";" >> vers.c
+echo "char bootprog_maker[] = \"${u}@${h}\";" >> vers.c
diff -r 5c69edfad1a7 -r 70329d833544 sys/arch/alpha/stand/ustarboot/version
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/alpha/stand/ustarboot/version    Fri Apr 02 09:13:27 1999 +0000
@@ -0,0 +1,3 @@
+$NetBSD: version,v 1.1 1999/04/02 09:13:29 cgd Exp $
+
+1.1:   Initial version



Home | Main Index | Thread Index | Old Index