From 4c835d91f61bbba283a38a082f28c5b78c3ac766 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 20 Aug 2000 14:48:32 +0000 Subject: [PATCH] add ramdisk support --- etc/etc.sparc64/MAKEDEV | 5 ++-- etc/etc.sparc64/Makefile.inc | 44 ++++++++++++++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/etc/etc.sparc64/MAKEDEV b/etc/etc.sparc64/MAKEDEV index 3a33acf8160f..48a0f85723f1 100644 --- a/etc/etc.sparc64/MAKEDEV +++ b/etc/etc.sparc64/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: MAKEDEV,v 1.13 2000/08/13 15:37:09 mrg Exp $ +# $NetBSD: MAKEDEV,v 1.14 2000/08/20 14:48:32 mrg Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -101,10 +101,11 @@ all) sh -$- $0 scsibus0 scsibus1 scsibus2 scsibus3 sh -$- $0 ipl lkm random local ;; -floppy) +floppy|ramdisk) sh -$- $0 std ttya ttyb ttyc ttyd pty0 sh -$- $0 sd0 sd1 sd2 sd3 sd4 sd5 md0 sh -$- $0 wd0 wd1 cd0 cd1 st0 st1 fd0 + sh -$- $0 random ;; std) rm -f console tty kmem mem null zero eeprom openprom drum klog \ diff --git a/etc/etc.sparc64/Makefile.inc b/etc/etc.sparc64/Makefile.inc index c6b13abaae17..e963cc397a25 100644 --- a/etc/etc.sparc64/Makefile.inc +++ b/etc/etc.sparc64/Makefile.inc @@ -1,8 +1,48 @@ -# $NetBSD: Makefile.inc,v 1.3 2000/07/07 23:06:09 eeh Exp $ +# $NetBSD: Makefile.inc,v 1.4 2000/08/20 14:50:02 mrg Exp $ # # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets # +TOP= $(.CURDIR)/.. + # Set this for any kernels beyond GENERIC you want to include # in the distribution. -#EXTRA_KERNELS+= GENERIC32 +#EXTRA_KERNELS+= POWEROFSEVEN +# XXX; no ramdisk install yet. +#BUILD_KERNELS+= INSTALL + + +# Add sparc64 installation directories +MD_INSTALLATION_DIRS= \ + installation/ramdisk installation/netboot installation/misc +INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS) + +snap_pre_md: +.ifndef UPDATE + cd $(TOP)/distrib && ${MAKE} clean +.endif + +# +# Install miniroot images and auxiliary scripts to the release tree +# +snap_md_post: + # make boot/miniroot images + (cd $(TOP)/distrib; ${MAKE}) + + # transfer images to release hierarchy +.for dir in notes sparc64/ramdisk + (cd $(TOP)/distrib/$(dir); ${MAKE} release) +.endfor + + # install boot image and installation scripts in netboot directory +.for f in ofwboot.net + cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/netboot +.endfor +.for f in ofwboot bootblk installboot + cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/misc +.endfor + + # compute checksums +.for dir in ${MD_INSTALLATION_DIRS} + sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*' +.endfor