Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/mipsco/ramdisk convert to NDWO
details: https://anonhg.NetBSD.org/src/rev/f5ac318f1031
branches: trunk
changeset: 525490:f5ac318f1031
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Apr 12 06:02:36 2002 +0000
description:
convert to NDWO
diffstat:
distrib/mipsco/ramdisk/Makefile | 105 ++++++---------------
distrib/mipsco/ramdisk/disktab.ramdisk | 6 -
distrib/mipsco/ramdisk/list | 153 +++++++++++++++-----------------
distrib/mipsco/ramdisk/mtree.conf | 82 -----------------
distrib/mipsco/ramdisk/ramdiskbin.conf | 38 --------
5 files changed, 103 insertions(+), 281 deletions(-)
diffs (truncated from 431 to 300 lines):
diff -r dd5bc0734f69 -r f5ac318f1031 distrib/mipsco/ramdisk/Makefile
--- a/distrib/mipsco/ramdisk/Makefile Fri Apr 12 05:53:50 2002 +0000
+++ b/distrib/mipsco/ramdisk/Makefile Fri Apr 12 06:02:36 2002 +0000
@@ -1,84 +1,43 @@
-# $NetBSD: Makefile,v 1.8 2002/02/09 13:56:51 lukem Exp $
+# $NetBSD: Makefile,v 1.9 2002/04/12 06:02:36 lukem Exp $
-TOP?= ${.CURDIR}/..
-ARCHDIR?= ${.CURDIR}/../miniroot
-
-.include "${TOP}/Makefile.inc"
-
-NETBOOTDIR= ${RELEASEDIR}/installation/netboot
+.include <bsd.own.mk>
+.include "${_SRC_TOP_}/distrib/Makefile.inc"
IMAGE= ramdisk.fs
-DISKIMAGE= diskimage.tgz
+IMAGETAR= diskimage.tgz
+IMAGESIZE= 3m
+MAKEFS_FLAGS= -f 15
-CBIN= ramdiskbin
-CSIZE= 6144 # 512 byte blocks, update disktab.ramdisk if changed
-DISKTAB= ${.CURDIR}/disktab.ramdisk
-DISKTYPE= install-ramdisk
-MOUNT_POINT?= /mnt
+WARNS= 1
+DBG= -Os
-VND?= vnd0
-VND_DEV= /dev/${VND}c
-VND_RDEV= /dev/r${VND}c
-
-CLEANFILES= ${IMAGE} ${DISKIMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache
-
-LISTS= ${.CURDIR}/list
-CRUNCHCONF= ${.CURDIR}/${CBIN}.conf
-MTREECONF= ${.CURDIR}/mtree.conf
-
-MTREE?= mtree
-CRUNCHGEN?= crunchgen
-
-realall: ${IMAGE}
+CRUNCHBIN= ramdiskbin
+LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
+MTREECONF= ${DISTRIBDIR}/common/mtree.common
+IMAGEENDIAN= be
+MAKEDEVTARGETS= minimal
+IMAGEDEPENDS= ${CRUNCHBIN} \
+ dot.profile termcap.mini \
+ ${DESTDIR}/usr/mdec/installboot ${DESTDIR}/usr/mdec/uboot.lif \
+ ${_SRC_TOP_}/etc/group ${_SRC_TOP_}/etc/master.passwd \
+ ${_SRC_TOP_}/etc/netconfig ${_SRC_TOP_}/etc/protocols \
+ ${_SRC_TOP_}/etc/services
-${IMAGE}: ${CBIN}
- dd if=/dev/zero of=${IMAGE} count=${CSIZE}
- vnconfig -v -c ${VND} ${IMAGE}
- disklabel -rw -f ${DISKTAB} ${VND} ${DISKTYPE}
- newfs -B be -m 0 -o space -i 5120 ${VND_RDEV}
- mount ${VND_DEV} ${MOUNT_POINT}
- ${MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
- TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} ARCHDIR=${ARCHDIR} \
- KERNOBJDIR=${KERNOBJDIR} \
- TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
- @echo ""
- @df -i ${MOUNT_POINT}
- @echo ""
- @echo Building diskimage tar file...
- tar cf - -C ${MOUNT_POINT} . | gzip -9 > ${DISKIMAGE}
- @echo ""
- umount ${MOUNT_POINT}
- vnconfig -u ${VND}
+# Use stubs to eliminate some large stuff from libc
+HACKSRC= ${DISTRIBDIR}/utils/libhack
+.include "${HACKSRC}/Makefile.inc"
+${CRUNCHBIN}: libhack.o
-unconfig:
- -umount -f ${MOUNT_POINT}
- -vnconfig -u ${VND}
- -/bin/rm -f ${IMAGE}
+
+realall: ${IMAGE} .WAIT ${IMAGETAR}
-${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
- ${CRUNCHGEN} -D ${TOP}/../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
+release: check_RELEASEDIR .WAIT ${IMAGETAR}
+ -mkdir -p ${RELEASEDIR}/installation/netboot
+ ${RELINSTALL} ${IMAGETAR} ${RELEASEDIR}/installation/netboot
-${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
- ${MAKE} -f ${CBIN}.mk all
-
-echoimage:
- @echo ${.OBJDIR}/${IMAGE}
-.if !defined(RELEASEDIR)
-release: .USE
- @echo setenv RELEASEDIR first!
- @false
-.else
-release: ${DISKIMAGE}
- -mkdir -p ${NETBOOTDIR}
- ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
- ${DISKIMAGE} ${NETBOOTDIR}
-.endif # !defined(RELEASEDIR)
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
-realinstall: release
-
-clean cleandir distclean:
- /bin/rm -f *.core ${CLEANFILES} *.o *.cro *.c
-
-.include <bsd.own.mk>
-.include <bsd.obj.mk>
+.include <bsd.prog.mk>
diff -r dd5bc0734f69 -r f5ac318f1031 distrib/mipsco/ramdisk/disktab.ramdisk
--- a/distrib/mipsco/ramdisk/disktab.ramdisk Fri Apr 12 05:53:50 2002 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-install-ramdisk:3MB Installation Ramdisk:\
- :ty=simulated:se#512:nt#3:ns#16:nc#128:\
- :ta=4.4BSD:\
- :pa#6144:oa#0:ba#4096:fa#512:\
- :pb#0:ob#0:\
- :pc#6144:oc#0:
diff -r dd5bc0734f69 -r f5ac318f1031 distrib/mipsco/ramdisk/list
--- a/distrib/mipsco/ramdisk/list Fri Apr 12 05:53:50 2002 +0000
+++ b/distrib/mipsco/ramdisk/list Fri Apr 12 06:02:36 2002 +0000
@@ -1,90 +1,82 @@
-# $NetBSD: list,v 1.1 2001/02/19 07:45:41 wdk Exp $
+# $NetBSD: list,v 1.2 2002/04/12 06:02:36 lukem Exp $
+
+SRCDIRS bin sbin usr.bin usr.sbin gnu/usr.bin
+
+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/cpio usr/bin/tar
+PROG bin/pwd
+PROG bin/rm
+PROG bin/sh
+PROG bin/stty
+PROG bin/sync
-# copy the crunched binary, link to it, and kill it
-COPY ${OBJDIR}/ramdiskbin ramdiskbin
-LINK ramdiskbin sysinst
-LINK ramdiskbin bin/[
-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/rm
-LINK ramdiskbin bin/sh
-LINK ramdiskbin bin/stty
-LINK ramdiskbin bin/sync
-LINK ramdiskbin bin/test
-LINK ramdiskbin sbin/disklabel
-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_kernfs
-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/restore
-LINK ramdiskbin sbin/route
-LINK ramdiskbin sbin/rrestore
-LINK ramdiskbin sbin/shutdown
-LINK ramdiskbin sbin/slattach
-LINK ramdiskbin sbin/umount
-LINK ramdiskbin usr/bin/chgrp
-LINK ramdiskbin usr/bin/cpio
-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/strings
-LINK ramdiskbin usr/bin/tar
-LINK ramdiskbin usr/bin/tip
-LINK ramdiskbin usr/bin/tset
-LINK ramdiskbin usr/mdec/installboot
-LINK ramdiskbin usr/sbin/bad144
-LINK ramdiskbin usr/sbin/chown
-LINK ramdiskbin usr/sbin/chroot
-SPECIAL /bin/rm ramdiskbin
+PROG sbin/disklabel
+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_kernfs
+PROG sbin/mount_msdos
+PROG sbin/mount_nfs
+PROG sbin/newfs sbin/mount_mfs
+PROG sbin/ping
+PROG sbin/reboot sbin/halt
+PROG sbin/route
+PROG sbin/shutdown
+PROG sbin/slattach
+PROG sbin/umount
-# make some devices
-COPY ${CURDIR}/../../../etc/etc.mipsco/MAKEDEV dev/MAKEDEV
-SPECIAL cd dev; sh MAKEDEV minimal
-SPECIAL /bin/rm dev/MAKEDEV
+PROG usr/bin/ftp
+PROG usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
+PROG usr/bin/sed
+PROG usr/bin/strings
+PROG usr/bin/tip
+PROG usr/bin/tset
+
+PROG usr/mdec/installboot
+
+PROG usr/sbin/chown usr/bin/chgrp
+PROG usr/sbin/chroot
+
+# init invokes the shell as -sh
+ARGVLN sh -sh
+
+SPECIAL ping srcdir distrib/utils/x_ping
+
+# we have not switched to MI usr.sbin/installboot yet.
+SPECIAL installboot srcdir sys/arch/${MACHINE}/stand/installboot
+
+LIBS libhack.o -ledit -lbz2 -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm
# we need the boot blocks /usr/mdec
-COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot
-COPY ${DESTDIR}/usr/mdec/bootxx_ffs usr/mdec/bootxx_ffs
+COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot
+COPY ${DESTDIR}/usr/mdec/bootxx_ffs usr/mdec/bootxx_ffs
# various files that we need in /etc for the install
-COPY ${CURDIR}/../../../etc/group etc/group
-COPY ${CURDIR}/../../../etc/master.passwd etc/master.passwd
-COPY ${CURDIR}/../../../etc/protocols etc/protocols
-COPY ${CURDIR}/../../../etc/netconfig etc/netconfig
-COPY ${CURDIR}/../../../etc/services etc/services
-SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
-SPECIAL /bin/rm etc/spwd.db
-SPECIAL /bin/rm etc/pwd.db
+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
# and the common installation tools
COPY ${CURDIR}/termcap.src usr/share/misc/termcap
-COPY ${CURDIR}/../../utils/script-installer/dot.commonutils .commonutils
-COPY ${CURDIR}/../../utils/script-installer/dot.instutils .instutils
+COPY ${DISTRIBDIR}/utils/script-installer/dot.commonutils .commonutils
+COPY ${DISTRIBDIR}/utils/script-installer/dot.instutils .instutils
# the disktab explanation file
COPY ${CURDIR}/disktab.preinstall etc/disktab.preinstall
@@ -95,7 +87,4 @@
# someday put in the release notes too
#
-#COPY ${CURDIR}/../../notes/mipsco/INSTALL.txt INSTALL.txt
-
Home |
Main Index |
Thread Index |
Old Index