Source-Changes-HG archive

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

[src/trunk]: src/distrib/sparc/instfs convert to NDWO. (that's sparc done!)



details:   https://anonhg.NetBSD.org/src/rev/c8fd75faf715
branches:  trunk
changeset: 526722:c8fd75faf715
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 09 11:12:48 2002 +0000

description:
convert to NDWO.  (that's sparc done!)

diffstat:

 distrib/sparc/instfs/Makefile |  46 ++++++++++++++----------------------------
 distrib/sparc/instfs/exclude  |   1 -
 2 files changed, 16 insertions(+), 31 deletions(-)

diffs (69 lines):

diff -r bc30656aca02 -r c8fd75faf715 distrib/sparc/instfs/Makefile
--- a/distrib/sparc/instfs/Makefile     Thu May 09 09:45:28 2002 +0000
+++ b/distrib/sparc/instfs/Makefile     Thu May 09 11:12:48 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2002/05/02 18:02:53 lukem Exp $
+#      $NetBSD: Makefile,v 1.8 2002/05/09 11:12:48 lukem Exp $
 #
 # instfs.tgz is the filesystem image for disk 2 of the floppy based
 # installation method.
@@ -9,39 +9,25 @@
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
 
-MINIROOT=      ${.CURDIR}/../../miniroot
+IMAGETAR=              instfs.tgz
+IMAGETAR_RELEASEDIR=   installation/bootfs
 
-MOUNT_POINT?=  /mnt
-# DEV/RDEV file system device, CDEV/RDEV vnconfig device
-VND?=          vnd0
-VND_DEV=       /dev/${VND}a
-VND_RDEV=      /dev/r${VND}a
-VND_CDEV=      /dev/${VND}c
-VND_CRDEV=     /dev/r${VND}c
-INSTFS?=       instfs.tgz
-
-MINIROOTDIR!=  cd ${MINIROOT} && ${PRINTOBJDIR}
-MINIROOT_IMAGE=        ${MINIROOTDIR}/miniroot.fs
-
-all: ${INSTFS}
+MINIROOTDIR!=  cd ${.CURDIR}/../../miniroot && ${PRINTOBJDIR}
+WORKDIR=       ${MINIROOTDIR}/work
+WORKBUILT=     ${MINIROOTDIR}/work.built
+WORKSPEC=      instfs.spec
 
-${INSTFS}: ${MINIROOT_IMAGE}
-       vnconfig -v -c ${VND} ${MINIROOT_IMAGE}
-       mount ${VND_DEV} ${MOUNT_POINT}
-       (cd ${MOUNT_POINT}; \
-               tar -z -X ${.CURDIR}/exclude -c -f ${.OBJDIR}/${.TARGET} .)
-       umount ${MOUNT_POINT}
-       vnconfig -u ${VND}
+${WORKSPEC}: ${MINIROOTDIR}/work.spec
+       -rm -f ${.TARGET} ${.TARGET}.tmp
+       egrep -v '^\./(netbsd|boot)($$|[ \t])' ${.ALLSRC} > ${.TARGET}.tmp \
+       && mv ${.TARGET}.tmp ${.TARGET}
 
-unconfig:
-       -umount -f ${MOUNT_POINT}
-       -vnconfig -u ${VND}
-       -/bin/rm -f ${INSTFS}
+CLEANFILES+=   ${WORKSPEC} ${WORKSPEC}.tmp
 
-clean cleandir distclean:
-       /bin/rm -f *.core ${INSTFS}
+${WORKBUILT}:
+       @echo "Need ../../miniroot built first"
+       @false
 
-release: check_RELEASEDIR .WAIT ${INSTFS}
-       ${RELEASE_INSTALL} ${INSTFS} $(RELEASEDIR)/installation/bootfs
+.include "${DISTRIBDIR}/common/Makefile.image"
 
 .include <bsd.prog.mk>
diff -r bc30656aca02 -r c8fd75faf715 distrib/sparc/instfs/exclude
--- a/distrib/sparc/instfs/exclude      Thu May 09 09:45:28 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-netbsd



Home | Main Index | Thread Index | Old Index