Source-Changes-HG archive

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

[src/trunk]: src/distrib/sparc - add more i-nodes to ramdisk image



details:   https://anonhg.NetBSD.org/src/rev/ba0fc8e34870
branches:  trunk
changeset: 471713:ba0fc8e34870
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Apr 08 21:17:14 1999 +0000

description:
- add more i-nodes to ramdisk image
- make ramdisk/list work again with object directories
- make OS revision part of the images file names (like miniroot).

diffstat:

 distrib/sparc/bootfs/Makefile  |  12 +++++-------
 distrib/sparc/ramdisk/Makefile |   8 ++++----
 distrib/sparc/ramdisk/list     |   6 +++---
 3 files changed, 12 insertions(+), 14 deletions(-)

diffs (111 lines):

diff -r 4511bdb555b3 -r ba0fc8e34870 distrib/sparc/bootfs/Makefile
--- a/distrib/sparc/bootfs/Makefile     Thu Apr 08 19:19:57 1999 +0000
+++ b/distrib/sparc/bootfs/Makefile     Thu Apr 08 21:17:14 1999 +0000
@@ -1,11 +1,10 @@
-#      $NetBSD: Makefile,v 1.10 1999/03/04 20:32:20 wrstuden Exp $
+#      $NetBSD: Makefile,v 1.11 1999/04/08 21:17:14 pk Exp $
 
 TOP=           ${.CURDIR}/..
 MINIROOT=      ${.CURDIR}/../../miniroot
 
 .include "${TOP}/Makefile.inc"
 
-IMAGE=         boot${REV}.fs
 KERN=          ${TOP}/../../sys/arch/sparc/compile/INSTALL/netbsd
 
 MOUNT_POINT?=  /mnt
@@ -16,14 +15,13 @@
 VND_CRDEV=     /dev/r${VND}c
 FD?=           fd0
 FD_RDEV=       /dev/r${FD}a
-IMAGE?=                xxx.fs
-KERN?=         netbsd-xxx
+IMAGE?=                boot-${REV}.fs
 MDEC=          ${DESTDIR}/usr/mdec
 
 LISTS=         ${.CURDIR}/list
 RAMDISK!=      cd ${TOP}/ramdisk/; \
-                   printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
-                   ${MAKE} -s -f-
+               printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk-${REV}.fs\n" |\
+               ${MAKE} -s -f-
 
 DISKTYPE=      floppy
 
@@ -32,7 +30,7 @@
 #   6144       1147k, 189 inodes free
 #  16384       1159k,  93 inodes free
 # 204800       1167k,  29 inodes free
-INO_BYTES?=    204800
+INO_BYTES=     204800
 
 CLEANFILES+=   netbsd.ram.gz netbsd.tmp
 
diff -r 4511bdb555b3 -r ba0fc8e34870 distrib/sparc/ramdisk/Makefile
--- a/distrib/sparc/ramdisk/Makefile    Thu Apr 08 19:19:57 1999 +0000
+++ b/distrib/sparc/ramdisk/Makefile    Thu Apr 08 21:17:14 1999 +0000
@@ -1,10 +1,9 @@
-#      $NetBSD: Makefile,v 1.8 1999/03/04 20:32:20 wrstuden Exp $
+#      $NetBSD: Makefile,v 1.9 1999/04/08 21:17:14 pk Exp $
 
 TOP=           ${.CURDIR}/..
 MINIROOT=      ${.CURDIR}/../../miniroot
 
 .include "${TOP}/Makefile.inc"
-IMAGE=         ramdisk.fs
 
 CBIN=          ramdiskbin
 
@@ -15,8 +14,8 @@
 VND_RDEV=      /dev/r${VND}a
 VND_CDEV=      /dev/${VND}c
 VND_CRDEV=     /dev/r${VND}c
-IMAGE?=                xxx.fs
 MDEC=          ${DESTDIR}/usr/mdec
+IMAGE?=                ramdisk-${REV}.fs
 
 LISTS=         list
 CRUNCHCONF=    ${CBIN}.conf
@@ -25,13 +24,14 @@
 SIZE=          1656k
 DISKTYPE=      instfs
 GEOM=          512/18/2/92
+INO_BYTES=     4096
 
 all: ${CBIN} 
        dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
        vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
        disklabel -rw ${VND_CDEV} ${DISKTYPE}
        disklabel -W ${VND_CDEV}
-       newfs -B be -m 0 -o space -i 8192 -c 92 ${VND_RDEV}
+       newfs -B be -m 0 -o space -i ${INO_BYTES} -c 92 ${VND_RDEV}
        mount ${VND_DEV} ${MOUNT_POINT}
        mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
        TOPDIR=${TOP} CURDIR=${MINIROOT} REALCURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
diff -r 4511bdb555b3 -r ba0fc8e34870 distrib/sparc/ramdisk/list
--- a/distrib/sparc/ramdisk/list        Thu Apr 08 19:19:57 1999 +0000
+++ b/distrib/sparc/ramdisk/list        Thu Apr 08 21:17:14 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: list,v 1.7 1999/01/10 13:39:45 mrg Exp $
+#      $NetBSD: list,v 1.8 1999/04/08 21:17:14 pk Exp $
 
 # copy the crunched binary, link to it, and kill it
 COPY   ${OBJDIR}/ramdiskbin            instbin
@@ -93,7 +93,7 @@
 SPECIAL        sed -e 's/^\([^:]*:[^:]*:[^:]*:[^:]*:\):0:0:/\1/' ${TOPDIR}/../../etc/master.passwd > etc/passwd
 
 # the disktab explanation file
-COPY   disktab.preinstall                      etc/disktab.preinstall
+COPY   ${REALCURDIR}/disktab.preinstall        etc/disktab.preinstall
 
 # Minimize use of MFS
 SYMLINK        /tmp    var/tmp
@@ -106,7 +106,7 @@
 SYMLINK        /tmp/hosts                              etc/hosts
 
 # and the installation tools
-COPY   dot.profile                             .profile
+COPY   ${REALCURDIR}/dot.profile               .profile
 COPY   ${TOPDIR}/install.md                    install.md
 COPY   ${TOPDIR}/../miniroot/install.sh        install
 COPY   ${TOPDIR}/../miniroot/upgrade.sh        upgrade



Home | Main Index | Thread Index | Old Index