From 15691979de5269e85900f86fdac2671c1e367677 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 30 Mar 2002 07:30:37 +0000 Subject: [PATCH] Switch to New Distrib World Order. --- distrib/macppc/floppies/ramdisk/Makefile | 79 +++------ distrib/macppc/floppies/ramdisk/disktab | 36 ---- distrib/macppc/floppies/ramdisk/dot.profile | 11 +- distrib/macppc/floppies/ramdisk/list | 165 +++++++++--------- distrib/macppc/floppies/ramdisk/mtree.conf | 82 --------- .../macppc/floppies/ramdisk/ramdiskbin.conf | 44 ----- 6 files changed, 109 insertions(+), 308 deletions(-) delete mode 100644 distrib/macppc/floppies/ramdisk/disktab delete mode 100644 distrib/macppc/floppies/ramdisk/mtree.conf delete mode 100644 distrib/macppc/floppies/ramdisk/ramdiskbin.conf diff --git a/distrib/macppc/floppies/ramdisk/Makefile b/distrib/macppc/floppies/ramdisk/Makefile index b286c39aefc7..3bb4e2cb2132 100644 --- a/distrib/macppc/floppies/ramdisk/Makefile +++ b/distrib/macppc/floppies/ramdisk/Makefile @@ -1,66 +1,37 @@ -# $NetBSD: Makefile,v 1.22 2002/03/28 04:33:22 lukem Exp $ +# $NetBSD: Makefile,v 1.23 2002/03/30 07:30:37 tsutsui Exp $ -TOP= ${.CURDIR}/.. +.include "${.CURDIR}/../../../Makefile.inc" +.include -.include "${TOP}/Makefile.inc" IMAGE= ramdisk.fs +IMAGESIZE= 2048k -CBIN= ramdiskbin +WARNS= 1 -MOUNT_POINT?= /mnt -VND?= vnd0 -VND_DEV= /dev/${VND}a -VND_RDEV= /dev/r${VND}a -MDEC= ${DESTDIR}/usr/mdec - -LISTS= list -CRUNCHCONF= ${CBIN}.conf -MTREECONF= mtree.conf - -CRUNCHGEN?= crunchgen -MTREE?= mtree - -DISKSIZE= 2048k -DISKTYPE= floppyinstfs -DBG= -Os -mmultiple - -all: ${CBIN} - dd if=/dev/zero of=${IMAGE} bs=${DISKSIZE} count=1 - vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE} - disklabel -f ${.CURDIR}/disktab -rw ${VND} ${DISKTYPE} - newfs -B be -m 0 -o space -i 6144 -c 128 ${VND_RDEV} - mount ${VND_DEV} ${MOUNT_POINT} - ${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - KERNOBJDIR=${KERNOBJDIR} \ - TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS} - @echo "" - @df -i ${MOUNT_POINT} - @echo "" - umount ${MOUNT_POINT} - vnconfig -u ${VND} - -unconfig: - -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND} - -rm -f ${IMAGE} - -${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} - ${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} - -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - ${MAKE} -f ${CBIN}.mk DBG="${DBG}" all +CRUNCHBIN= ramdiskbin +LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst +MTREECONF= ${DISTRIBDIR}/common/mtree.common +IMAGEENDIAN= be +MAKEDEVTARGETS= floppy +IMAGEDEPENDS= ${CRUNCHBIN} \ + dot.profile termcap.src \ + ${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/usr/mdec/bootxx \ + ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \ + ${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \ + ${_SRC_TOP_}/etc/services # Use stubs to eliminate some large stuff from libc HACKSRC= ${DISTRIBDIR}/utils/libhack .include "${HACKSRC}/Makefile.inc" -${CBIN}: libhack.o +${CRUNCHBIN}: libhack.o -clean cleandir distclean: - if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; - rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache - rm -f *.core *.o *.cro *.c -.include -.include +realall: ${IMAGE} + +release: + +.include "${DISTRIBDIR}/common/Makefile.crunch" +.include "${DISTRIBDIR}/common/Makefile.makedev" +.include "${DISTRIBDIR}/common/Makefile.image" + .include diff --git a/distrib/macppc/floppies/ramdisk/disktab b/distrib/macppc/floppies/ramdisk/disktab deleted file mode 100644 index 917bbf9aeecf..000000000000 --- a/distrib/macppc/floppies/ramdisk/disktab +++ /dev/null @@ -1,36 +0,0 @@ -# $NetBSD: disktab,v 1.1 1999/11/08 23:51:30 mycroft 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) -# - -floppyinstfs|NetBSD floppy install filesystem:\ - :ty=floppy:se#512:nt#1:rm#300:ns#64:nc#64:\ - :pa#4096:oa#0:ba#4096:fa#512:ta=4.2BSD:\ - :pc#4096:oc#0: diff --git a/distrib/macppc/floppies/ramdisk/dot.profile b/distrib/macppc/floppies/ramdisk/dot.profile index f9faf065b62b..02f4c02f9e76 100644 --- a/distrib/macppc/floppies/ramdisk/dot.profile +++ b/distrib/macppc/floppies/ramdisk/dot.profile @@ -1,4 +1,4 @@ -# $NetBSD: dot.profile,v 1.11 2001/12/10 06:18:26 jmc Exp $ +# $NetBSD: dot.profile,v 1.12 2002/03/30 07:30:37 tsutsui Exp $ # # Copyright (c) 1995 Jason R. Thorpe # Copyright (c) 1994 Christopher G. Demetriou @@ -50,15 +50,6 @@ if [ "X${DONEPROFILE}" = "X" ]; then echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T' stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 38400 - # Create real /dev - echo 'Creating real /dev (this may take a while) ...' - mount -t mfs swap /dev - gzcat /MAKEDEV.gz > /dev/MAKEDEV - cd /dev - sh MAKEDEV all 2> /dev/null - cd .. - echo 'Done.' - # mount root read-write mount -u /dev/md0a / diff --git a/distrib/macppc/floppies/ramdisk/list b/distrib/macppc/floppies/ramdisk/list index 8b27c2cef271..932302a0c430 100644 --- a/distrib/macppc/floppies/ramdisk/list +++ b/distrib/macppc/floppies/ramdisk/list @@ -1,93 +1,94 @@ -# $NetBSD: list,v 1.13 2001/12/10 06:18:26 jmc Exp $ +# $NetBSD: list,v 1.14 2002/03/30 07:30:37 tsutsui Exp $ -COPY ${CURDIR}/../../../../etc/group etc/group -COPY ${CURDIR}/../../../../etc/master.passwd etc/master.passwd -SPECIAL pwd_mkdb -p -d . etc/master.passwd -SPECIAL rm etc/pwd.db etc/spwd.db +SRCDIRS bin sbin usr.bin usr.sbin sys/arch/${MACHINE}/stand -# copy the crunched binary, link to it, and kill it -COPY ${OBJDIR}/ramdiskbin ramdiskbin -LINK ramdiskbin sysinst -LINK ramdiskbin bin/cat -LINK ramdiskbin bin/chmod -LINK ramdiskbin bin/cp -LINK ramdiskbin bin/dd -LINK ramdiskbin bin/df -LINK ramdiskbin bin/ed -LINK ramdiskbin bin/ln -LINK ramdiskbin bin/ls -LINK ramdiskbin bin/mkdir -LINK ramdiskbin bin/mt -LINK ramdiskbin bin/mv -LINK ramdiskbin bin/pax -LINK ramdiskbin bin/pwd -LINK ramdiskbin bin/rcmd -LINK ramdiskbin bin/rcp -LINK ramdiskbin bin/rm -LINK ramdiskbin bin/sh -LINK ramdiskbin bin/stty -LINK ramdiskbin bin/sync -LINK ramdiskbin bin/test -LINK ramdiskbin bin/[ -LINK ramdiskbin sbin/disklabel -LINK ramdiskbin sbin/dmesg -LINK ramdiskbin sbin/fsck -LINK ramdiskbin sbin/fsck_ffs -LINK ramdiskbin sbin/halt -LINK ramdiskbin sbin/ifconfig -LINK ramdiskbin sbin/init -LINK ramdiskbin sbin/mknod -LINK ramdiskbin sbin/mount -LINK ramdiskbin sbin/mount_cd9660 -LINK ramdiskbin sbin/mount_ffs -LINK ramdiskbin sbin/mount_mfs -LINK ramdiskbin sbin/mount_msdos -LINK ramdiskbin sbin/mount_nfs -LINK ramdiskbin sbin/newfs -LINK ramdiskbin sbin/ping -LINK ramdiskbin sbin/reboot -LINK ramdiskbin sbin/route -LINK ramdiskbin sbin/shutdown -LINK ramdiskbin sbin/umount -LINK ramdiskbin usr/bin/chgrp -LINK ramdiskbin usr/bin/ftp -LINK ramdiskbin usr/bin/gunzip -LINK ramdiskbin usr/bin/gzcat -LINK ramdiskbin usr/bin/gzip -LINK ramdiskbin usr/bin/more -LINK ramdiskbin usr/bin/sed -LINK ramdiskbin usr/bin/tar -LINK ramdiskbin usr/bin/tset -LINK ramdiskbin usr/mdec/installboot -LINK ramdiskbin usr/sbin/chown -LINK ramdiskbin usr/sbin/chroot -SPECIAL rm ramdiskbin +PROG bin/cat +PROG bin/chmod +PROG bin/cp +PROG bin/dd +PROG bin/df +PROG bin/ed +PROG bin/ln +PROG bin/ls +PROG bin/mkdir +PROG bin/mt +PROG bin/mv +PROG bin/pax usr/bin/tar +PROG bin/pwd +PROG bin/rcmd +PROG bin/rcp +PROG bin/rm +PROG bin/sh +PROG bin/stty +PROG bin/sync -# make some devices -SPECIAL cd dev; sh ${DESTDIR}/dev/MAKEDEV std -SPECIAL gzip -9 -c ${DESTDIR}/dev/MAKEDEV > MAKEDEV.gz +PROG sbin/disklabel +PROG sbin/dmesg +PROG sbin/fsck +PROG sbin/fsck_ffs +PROG sbin/ifconfig +PROG sbin/init +PROG sbin/mknod +PROG sbin/mount +PROG sbin/mount_cd9660 +PROG sbin/mount_ffs +PROG sbin/mount_msdos +PROG sbin/mount_nfs +PROG sbin/newfs sbin/mount_mfs +PROG sbin/ping +PROG sbin/reboot sbin/halt +PROG sbin/restore sbin/rrestore +PROG sbin/route +PROG sbin/shutdown +PROG sbin/swapctl +PROG sbin/umount -# we need the boot blocks /usr/mdec -COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot -COPY ${DESTDIR}/usr/mdec/bootxx usr/mdec/bootxx +PROG usr/bin/ftp +PROG usr/bin/gzip usr/bin/gzcat usr/bin/gunzip +PROG usr/bin/more +PROG usr/bin/sed +PROG usr/bin/tset -# and the termcap file -COPY ${CURDIR}/termcap.src usr/share/misc/termcap +PROG usr/sbin/chown usr/bin/chgrp +PROG usr/sbin/chroot + +PROG usr/mdec/installboot + +SPECIAL dmesg srcdir distrib/utils/x_dmesg +SPECIAL ed srcdir distrib/utils/x_ed +SPECIAL ftp srcdir distrib/utils/x_ftp +SPECIAL gzip srcdir distrib/utils/x_gzip +SPECIAL ifconfig srcdir distrib/utils/x_ifconfig +SPECIAL more srcdir distrib/utils/more +SPECIAL mount srcdir distrib/utils/x_mount +SPECIAL ping srcdir distrib/utils/x_ping +SPECIAL route srcdir distrib/utils/x_route +SPECIAL umount srcdir distrib/utils/x_umount + +LIBS libhack.o -ledit -lutil -lcurses -ltermcap -lrmt -ll -lm -lz + +COPY ${DESTDIR}/usr/mdec/bootxx usr/mdec/bootxx +COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot + +# init invokes the shell as -sh +ARGVLN sh -sh # various files that we need in /etc for the install -#COPY ${DESTDIR}/etc/disktab etc/disktab -COPY ${CURDIR}/../../../../etc/netconfig etc/netconfig -COPY ${CURDIR}/../../../../etc/protocols etc/protocols -COPY ${CURDIR}/../../../../etc/services etc/services +COPY ${_SRC_TOP_}/etc/group etc/group +COPY ${_SRC_TOP_}/etc/master.passwd etc/master.passwd +COPY ${_SRC_TOP_}/etc/netconfig etc/netconfig +COPY ${_SRC_TOP_}/etc/protocols etc/protocols +COPY ${_SRC_TOP_}/etc/services etc/services -# the disktab explanation file -COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall +# and the common installation tools +COPY ${CURDIR}/termcap.src usr/share/misc/termcap -# and the installation scripts -COPY ${CURDIR}/dot.profile .profile +# and the disktab explanation file +COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall -# Minimize use of MFS +# and the boot script +COPY ${CURDIR}/dot.profile .profile +MTREE ./.profile type=file uname=root gname=wheel mode=0644 + +# Minimaize use of MFS SYMLINK /tmp var/tmp - -#the lists of obsolete files used by sysinst -SPECIAL sh ${CURDIR}/../../../../distrib/sets/makeobsolete -b -s ${CURDIR}/../../../../distrib/sets -t ./dist diff --git a/distrib/macppc/floppies/ramdisk/mtree.conf b/distrib/macppc/floppies/ramdisk/mtree.conf deleted file mode 100644 index 35b5ad3fde7a..000000000000 --- a/distrib/macppc/floppies/ramdisk/mtree.conf +++ /dev/null @@ -1,82 +0,0 @@ -# $NetBSD: mtree.conf,v 1.3 2000/07/24 09:15:21 tsubai Exp $ - -/set type=dir uname=root gname=wheel mode=0755 -# . -. - -# ./bin -bin -# ./bin -.. - -# ./dev -dev -# ./dev -.. - -# ./dist -dist -# ./dist -.. - -# ./etc -etc -# ./etc -.. - -# ./mnt -mnt -# ./mnt -.. - -# ./mnt2 -mnt2 -# ./mnt2 -.. - -# ./sbin -sbin -# ./sbin -.. - -# ./tmp -tmp mode=01777 -# ./tmp -.. - -# ./var -var -# ./var -.. - -# ./usr -usr - -# ./usr/bin -bin -# ./usr/bin -.. - -# ./usr/mdec -mdec -# ./usr/mdec -.. - -# ./usr/sbin -sbin -# ./usr/sbin -.. - -# ./usr/share -share - -# ./usr/share/misc -misc -# ./usr/share/misc -.. - -# ./usr/share -.. - -# ./usr -.. diff --git a/distrib/macppc/floppies/ramdisk/ramdiskbin.conf b/distrib/macppc/floppies/ramdisk/ramdiskbin.conf deleted file mode 100644 index 7357dd3afe89..000000000000 --- a/distrib/macppc/floppies/ramdisk/ramdiskbin.conf +++ /dev/null @@ -1,44 +0,0 @@ -# $NetBSD: ramdiskbin.conf,v 1.18 2001/12/10 06:17:24 jmc Exp $ -# -# ramdiskbin.conf - unified binary for the install ramdisk - -srcdirs bin sbin usr.bin usr.sbin gnu/usr.bin -srcdirs sys/arch/macppc/stand - -progs cat chmod chown cp dd df disklabel dmesg -progs fsck fsck_ffs ftp gzip ifconfig init installboot ln ls -progs mkdir mknod more mount mount_cd9660 mount_ffs -progs mount_msdos mount_nfs mv newfs pax ping pwd rcmd rcp reboot -progs rm route sed sh shutdown stty sync -progs test tip tset umount -progs sysinst - -special dd srcdir distrib/utils/x_dd -special dmesg srcdir distrib/utils/x_dmesg -#special ed srcdir distrib/utils/x_ed -special ftp srcdir distrib/utils/x_ftp -special gzip srcdir distrib/utils/x_gzip -special ifconfig srcdir distrib/utils/x_ifconfig -special init srcdir distrib/utils/init_s -special more srcdir distrib/utils/more -special mount srcdir distrib/utils/x_mount -special ping srcdir distrib/utils/x_ping -special route srcdir distrib/utils/x_route -special sh srcdir distrib/utils/x_sh -special sysinst srcdir distrib/utils/sysinst/arch/macppc -special umount srcdir distrib/utils/x_umount - -ln chown chgrp -ln gzip gzcat gunzip -ln sh -sh # init invokes the shell this way -ln test [ -ln mount_cd9660 cd9660 -ln mount_ffs ffs -ln mount_nfs nfs -ln newfs mount_mfs -ln pax tar -ln rcmd rsh -ln reboot halt - -libs libhack.o -libs -ledit -lutil -lcurses -ltermcap -lcrypt -ll -lm -lz