Source-Changes-HG archive

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

[src/trunk]: src/distrib/x68k/floppies/ramdisk Size hacks.



details:   https://anonhg.NetBSD.org/src/rev/0dce1995cb7d
branches:  trunk
changeset: 471824:0dce1995cb7d
user:      minoura <minoura%NetBSD.org@localhost>
date:      Mon Apr 12 16:06:36 1999 +0000

description:
Size hacks.
Use libhack, x_route, x_ifconfig, init_s in the distrib/utils
to reduce the ramdisk size.

diffstat:

 distrib/x68k/floppies/ramdisk/Makefile        |  17 ++++++++++-------
 distrib/x68k/floppies/ramdisk/list            |  19 +++++++++++--------
 distrib/x68k/floppies/ramdisk/ramdiskbin.conf |   6 ++++--
 3 files changed, 25 insertions(+), 17 deletions(-)

diffs (109 lines):

diff -r d4ade6c02c31 -r 0dce1995cb7d distrib/x68k/floppies/ramdisk/Makefile
--- a/distrib/x68k/floppies/ramdisk/Makefile    Mon Apr 12 13:46:25 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/Makefile    Mon Apr 12 16:06:36 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 1999/03/24 15:54:45 minoura Exp $
+#      $NetBSD: Makefile,v 1.8 1999/04/12 16:06:36 minoura Exp $
 
 TOP=           ${.CURDIR}/..
 
@@ -24,8 +24,6 @@
 CRUNCHCONF=    ${CBIN}.conf
 MTREE=         mtree.conf
 
-DISKTYPE=      floppy5
-
 install.sh: install.tmpl
        sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
 
@@ -36,10 +34,9 @@
        sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
 
 all: ${AUXTARGETS} ${CBIN} 
-       dd if=/dev/zero of=${IMAGE} count=2400
-       vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
-       disklabel -rw ${VND_CDEV} ${DISKTYPE}
-       newfs -B be -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
+       dd if=/dev/zero of=${IMAGE} count=2048
+       vnconfig -v -c ${VND_CDEV} ${IMAGE} 512/16/2/64
+       newfs -B be -m 0 -o space -i 5120 -c 80 ${VND_RDEV}
        mount ${VND_DEV} ${MOUNT_POINT}
        mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
        TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
@@ -61,6 +58,12 @@
 ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
        make -f ${CBIN}.mk all
 
+# Use size-reduced libhack.
+${CBIN}: libhack.o
+
+HACKSRC=${TOP}/../../utils/libhack
+.include "${HACKSRC}/Makefile.inc"
+
 clean cleandir distclean:
        /bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
 
diff -r d4ade6c02c31 -r 0dce1995cb7d distrib/x68k/floppies/ramdisk/list
--- a/distrib/x68k/floppies/ramdisk/list        Mon Apr 12 13:46:25 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/list        Mon Apr 12 16:06:36 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: list,v 1.6 1999/03/27 14:07:08 minoura Exp $
+#      $NetBSD: list,v 1.7 1999/04/12 16:06:36 minoura Exp $
 
 # copy the crunched binary, link to it, and kill it
 COPY   ${OBJDIR}/ramdiskbin            ramdiskbin
@@ -59,6 +59,16 @@
 SYMLINK        /bin/cat                usr/sbin/update
 SPECIAL        /bin/rm ramdiskbin
 
+# 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/services      etc/services
+
+SPECIAL        pwd_mkdb -p -d ./ etc/master.passwd
+SPECIAL /bin/rm etc/spwd.db
+SPECIAL /bin/rm etc/pwd.db
+
 # copy the MAKEDEV script and make some devices
 COPY   ${CURDIR}/../../../../etc/etc.x68k/MAKEDEV      dev/MAKEDEV
 SPECIAL        cd dev; sh MAKEDEV ramdisk
@@ -68,13 +78,6 @@
 COPY   ${DESTDIR}/usr/mdec/sdboot      usr/mdec/sdboot
 LINK   usr/mdec/sdboot                 usr/mdec/fdboot
 
-# 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/services      etc/services
-SPECIAL        pwd_mkdb -p -d ./ etc/master.passwd
-
 # and the common installation tools
 COPY   ${CURDIR}/../../../utils/script-installer/dot.instutils    .instutils
 COPY   ${CURDIR}/../../../utils/script-installer/dot.commonutils  .commonutils
diff -r d4ade6c02c31 -r 0dce1995cb7d distrib/x68k/floppies/ramdisk/ramdiskbin.conf
--- a/distrib/x68k/floppies/ramdisk/ramdiskbin.conf     Mon Apr 12 13:46:25 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/ramdiskbin.conf     Mon Apr 12 16:06:36 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: ramdiskbin.conf,v 1.5 1999/03/24 15:54:46 minoura Exp $
+#      $NetBSD: ramdiskbin.conf,v 1.6 1999/04/12 16:06:36 minoura Exp $
 #
 # ramdiskbin.conf - unified binary for the install ramdisk
 #
@@ -13,6 +13,8 @@
 progs tip umount update
 
 special init srcdir distrib/utils/init_s
+special ifconfig srcdir distrib/utils/x_ifconfig
+special route srcdir distrib/utils/x_route
 
 ln pax tar
 ln chown chgrp
@@ -28,4 +30,4 @@
 ln reboot halt
 ln restore rrestore
 
-libs -ledit -lutil -ltermcap -lrmt -lcrypt -ll -lm
+libs libhack.o -ledit -lutil -ltermcap -lrmt -lcrypt -ll -lm



Home | Main Index | Thread Index | Old Index