Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/distrib/sparc64 pull up from trunk. approved by thorpej:
details: https://anonhg.NetBSD.org/src/rev/f99cbb5ba1d6
branches: netbsd-1-5
changeset: 489267:f99cbb5ba1d6
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Aug 26 01:07:05 2000 +0000
description:
pull up from trunk. approved by thorpej:
>first cut sysinst for sparc64. seems to work OK.
diffstat:
distrib/sparc64/Makefile | 5 +
distrib/sparc64/list2sh.awk | 55 +++++++
distrib/sparc64/ramdisk/Makefile | 119 +++++++++++++++
distrib/sparc64/ramdisk/disktab | 37 ++++
distrib/sparc64/ramdisk/disktab.preinstall | 31 +++
distrib/sparc64/ramdisk/dist/base_obsolete | 1 +
distrib/sparc64/ramdisk/dist/comp_obsolete | 1 +
distrib/sparc64/ramdisk/dist/games_obsolete | 1 +
distrib/sparc64/ramdisk/dist/man_obsolete | 1 +
distrib/sparc64/ramdisk/dist/misc_obsolete | 1 +
distrib/sparc64/ramdisk/dist/secr_obsolete | 1 +
distrib/sparc64/ramdisk/dist/xbase_obsolete | 1 +
distrib/sparc64/ramdisk/dist/xserver_obsolete | 1 +
distrib/sparc64/ramdisk/dot.profile.m4 | 75 +++++++++
distrib/sparc64/ramdisk/list.m4 | 125 ++++++++++++++++
distrib/sparc64/ramdisk/mtree.conf | 82 ++++++++++
distrib/sparc64/ramdisk/ramdiskbin.m4 | 52 ++++++
distrib/sparc64/ramdisk/termcap.mini | 202 ++++++++++++++++++++++++++
distrib/sparc64/runlist.sh | 13 +
19 files changed, 804 insertions(+), 0 deletions(-)
diffs (truncated from 880 to 300 lines):
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/Makefile Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1.2.2 2000/08/26 01:07:05 mrg Exp $
+
+SUBDIR= ramdisk
+
+.include <bsd.subdir.mk>
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/list2sh.awk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/list2sh.awk Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: list2sh.awk,v 1.1.2.2 2000/08/26 01:07:05 mrg Exp $
+
+BEGIN {
+ printf("cd ${CURDIR}\n");
+ printf("\n");
+}
+/^$/ || /^#/ {
+ print $0;
+ next;
+}
+$1 == "COPY" {
+ printf("echo '%s'\n", $0);
+ printf("rm -f ${TARGDIR}/%s\n", $3);
+ printf("cp %s ${TARGDIR}/%s\n", $2, $3);
+ next;
+}
+$1 == "LINK" {
+ printf("echo '%s'\n", $0);
+ printf("rm -f ${TARGDIR}/%s\n", $3);
+ printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
+ next;
+}
+$1 == "SYMLINK" {
+ printf("echo '%s'\n", $0);
+ printf("rm -f ${TARGDIR}/%s\n", $3);
+ printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3);
+ next;
+}
+$1 == "COPYDIR" {
+ printf("echo '%s'\n", $0);
+ printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n",
+ $3);
+ printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2,
+ $3);
+ next;
+}
+$1 == "SPECIAL" {
+ printf("echo '%s'\n", $0);
+ printf("(cd ${TARGDIR};");
+ for (i = 2; i <= NF; i++)
+ printf(" %s", $i);
+ printf(")\n");
+ next;
+}
+{
+ printf("echo '%s'\n", $0);
+ printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR);
+ printf("exit 1\n");
+ exit 1;
+}
+END {
+ printf("\n");
+ printf("exit 0\n");
+ exit 0;
+}
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/Makefile Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,119 @@
+# $NetBSD: Makefile,v 1.3.2.2 2000/08/26 01:07:06 mrg Exp $
+
+TOP= ${.CURDIR}/..
+MINIROOT= ${TOP}/../miniroot
+HACKSRC= ${TOP}/../utils/libhack
+SRCROOT= ${TOP}/../..
+WARNS=1
+
+.if ${MACHINE_ARCH} == "i386"
+RAW_PART= d
+.else
+RAW_PART= c
+.endif
+
+# Need to add more cases
+.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "m68k" || \
+ ${MACHINE_ARCH} == "sparc64"
+FS_END= be
+.else # i386, pmax
+FS_END= le
+.endif
+
+AUXDEPENDS= dot.profile disktab.preinstall termcap.mini \
+ dist/base_obsolete dist/comp_obsolete \
+ dist/games_obsolete dist/man_obsolete dist/misc_obsolete \
+ dist/secr_obsolete dist/xbase_obsolete dist/xserver_obsolete
+AUXCLEAN= list ${CBIN}.conf dot.profile
+
+CBIN= ramdiskbin
+
+.if ${MACHINE_ARCH} == "sparc64"
+CSIZE?= 10240
+.endif
+
+MOUNT_POINT?= /mnt
+# DEV/RDEV file system device, CDEV/RDEV vnconfig device
+VND?= vnd0
+VND_DEV= /dev/${VND}c
+VND_RDEV= /dev/r${VND}c
+VND_CDEV= /dev/${VND}${RAW_PART}
+VND_CRDEV= /dev/r${VND}${RAW_PART}
+IMAGE?= ramdisk.fs
+CSIZE?= 3312
+MDEC= ${DESTDIR}/usr/mdec
+
+LISTS= list
+CRUNCHCONF= ${CBIN}.conf
+MTREE= mtree.conf
+
+DISKTYPE?= miniroot
+
+all: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
+ dd if=/dev/zero of=${IMAGE} count=${CSIZE}
+ vnconfig -v -c ${VND_CDEV} ${IMAGE}
+ disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
+ newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
+ mount ${VND_DEV} ${MOUNT_POINT}
+ mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
+ TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
+ KERNOBJDIR=${KERNOBJDIR} \
+ TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
+ @echo ""
+ @df -i ${MOUNT_POINT}
+ @echo ""
+ @echo "installing new bootblocks"
+ ${MDEC}/binstall -m ${DESTDIR}/usr/mdec -u -v ffs ${MOUNT_POINT}
+ umount ${MOUNT_POINT}
+ vnconfig -u ${VND_CDEV}
+
+unconfig:
+ -umount -f ${MOUNT_POINT}
+ -vnconfig -u ${VND_DEV}
+ -/bin/rm -f ${IMAGE}
+
+dot.profile: dot.profile.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ ${.ALLSRC} > ${.TARGET}
+
+${LISTS}: ${LISTS}.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ -DSRCROOT=${SRCROOT} ${.ALLSRC} > ${.TARGET}
+
+${CBIN}.conf: ${CBIN}.m4
+ m4 -DMACHINE_ARCH=${MACHINE_ARCH} -DMACHINE=${MACHINE} \
+ ${.ALLSRC} > ${.TARGET}
+
+${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
+ crunchgen -D ${SRCROOT} -L ${DESTDIR}/usr/lib ${.ALLSRC}
+
+${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
+ make -f ${CBIN}.mk all
+
+# This is listed in ramdiskbin.conf but is built here.
+${CBIN}: libhack.o
+
+# Use stubs to eliminate some large stuff from libc
+.include "${HACKSRC}/Makefile.inc"
+
+# turn off small gethostby* temporarily
+HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o
+
+clean cleandir distclean:
+ /bin/rm -f *.core ${AUXCLEAN} ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.cro *.c
+
+.ifndef RELEASEDIR
+release:
+ @echo setenv RELEASEDIR first
+ @false
+.else
+release: $(IMAGE)
+ @mkdir -p $(RELEASEDIR)/installation/ramdisk
+ gzip -c -9 < $(.OBJDIR)/ramdisk.fs \
+ > $(RELEASEDIR)/installation/ramdisk/ramdisk.fs.gz
+.endif # RELEASEDIR check
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>
+.include <bsd.sys.mk>
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/disktab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/disktab Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: disktab,v 1.1.2.2 2000/08/26 01:07:06 mrg Exp $
+#
+# Disk geometry and partition layout tables.
+# Key:
+# dt controller type
+# ty type of disk (fixed, removeable, simulated)
+# d[0-4] drive-type-dependent parameters
+# ns #sectors/track
+# nt #tracks/cylinder
+# nc #cylinders/disk
+# sc #sectors/cylinder, ns*nt default
+# su #sectors/unit, sc*nc default
+# se sector size, DEV_BSIZE default
+# rm rpm, 3600 default
+# sf supports bad144-style bad sector forwarding
+# sk sector skew per track, default 0
+# cs sector skew per cylinder, default 0
+# hs headswitch time, default 0
+# ts one-cylinder seek time, default 0
+# il sector interleave (n:1), 1 default
+# bs boot block size, default BBSIZE
+# sb superblock size, default SBSIZE
+# o[a-h] partition offsets in sectors
+# p[a-h] partition sizes in sectors
+# b[a-h] partition block sizes in bytes
+# f[a-h] partition fragment sizes in bytes
+# t[a-h] partition types (filesystem, swap, etc)
+#
+# All partition sizes reserve space for bad sector tables.
+# (5 cylinders needed for maintenance + replacement sectors)
+#
+
+# pseudo-geometry taken from rd7945
+miniroot:\
+ :ty=winchester:ns#16:nt#7:nc#968:\
+ :pa#10240:ba#8192:fa#1024:\
+ :pc#10240:bc#8192:fc#1024:
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/disktab.preinstall
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/disktab.preinstall Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: disktab.preinstall,v 1.1.2.2 2000/08/26 01:07:06 mrg Exp $
+#
+# Disk geometry and partition layout tables.
+# Key:
+# dt controller type
+# ty type of disk (fixed, removeable, simulated)
+# d[0-4] drive-type-dependent parameters
+# ns #sectors/track
+# nt #tracks/cylinder
+# nc #cylinders/disk
+# sc #sectors/cylinder, nc*nt default
+# su #sectors/unit, sc*nc default
+# se sector size, DEV_BSIZE default
+# rm rpm, 3600 default
+# sf supports bad144-style bad sector forwarding
+# sk sector skew per track, default 0
+# cs sector skew per cylinder, default 0
+# hs headswitch time, default 0
+# ts one-cylinder seek time, default 0
+# il sector interleave (n:1), 1 default
+# bs boot block size, default BBSIZE
+# sb superblock size, default SBSIZE
+# o[a-h] partition offsets in sectors
+# p[a-h] partition sizes in sectors
+# b[a-h] partition block sizes in bytes
+# f[a-h] partition fragment sizes in bytes
+# t[a-h] partition types (filesystem, swap, etc)
+#
+# All partition sizes reserve space for bad sector tables.
+# (5 cylinders needed for maintenance + replacement sectors)
+#
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/base_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/base_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: base_obsolete,v 1.1.2.2 2000/08/26 01:07:07 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/comp_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/comp_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: comp_obsolete,v 1.1.2.2 2000/08/26 01:07:07 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/games_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/games_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: games_obsolete,v 1.1.2.2 2000/08/26 01:07:07 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/man_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/man_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: man_obsolete,v 1.1.2.2 2000/08/26 01:07:07 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/misc_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/misc_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: misc_obsolete,v 1.1.2.2 2000/08/26 01:07:08 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/secr_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/secr_obsolete Sat Aug 26 01:07:05 2000 +0000
@@ -0,0 +1,1 @@
+$NetBSD: secr_obsolete,v 1.1.2.2 2000/08/26 01:07:08 mrg Exp $
diff -r 7f330faa5c60 -r f99cbb5ba1d6 distrib/sparc64/ramdisk/dist/xbase_obsolete
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/ramdisk/dist/xbase_obsolete Sat Aug 26 01:07:05 2000 +0000
Home |
Main Index |
Thread Index |
Old Index