Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/macppc/floppies/bootfloppy Use cp to install the ker...
details: https://anonhg.NetBSD.org/src/rev/efd33c9ea8a0
branches: trunk
changeset: 495211:efd33c9ea8a0
user: tsubai <tsubai%NetBSD.org@localhost>
date: Mon Jul 24 09:27:40 2000 +0000
description:
Use cp to install the kernel.
Use print-objdir target to determine ramdisk directory.
...etc.
diffstat:
distrib/macppc/floppies/bootfloppy/Makefile | 31 +++++++---------------------
distrib/macppc/floppies/bootfloppy/list | 4 ---
2 files changed, 8 insertions(+), 27 deletions(-)
diffs (78 lines):
diff -r ebe335457942 -r efd33c9ea8a0 distrib/macppc/floppies/bootfloppy/Makefile
--- a/distrib/macppc/floppies/bootfloppy/Makefile Mon Jul 24 09:25:53 2000 +0000
+++ b/distrib/macppc/floppies/bootfloppy/Makefile Mon Jul 24 09:27:40 2000 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2000/06/22 17:32:22 matt Exp $
+# $NetBSD: Makefile,v 1.10 2000/07/24 09:27:40 tsubai Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk>
-.include <bsd.own.mk>
IMAGE= boot.fs
KERN= ${KERNOBJDIR}/INSTALL/netbsd
@@ -19,39 +18,25 @@
STRIP?= strip
-LISTS= ${.CURDIR}/list
-RAMDISK!= cd $(.CURDIR)/../ramdisk/; \
- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
- ${MAKE} -s -f-
+RAMDISKDIR!= cd ${.CURDIR}/../ramdisk; ${MAKE} print-objdir
+RAMDISK= ${RAMDISKDIR}/ramdisk.fs
DISKTYPE= floppy
-# Some reasonable values for the -i parameter to newfs are:
-#
-# 8192 1387k, 189 inodes free
-# 16384 1399k, 93 inodes free
-# 65536 1407k, 29 inodes free
-INO_BYTES?= 65536
-
CLEANFILES+= netbsd.ram.gz netbsd.tmp
-all: netbsd.ram.gz
+all: netbsd.ram.gz
dd if=/dev/zero of=${IMAGE} bs=1440k count=1
- # vnconfig -v -c ${VND} ${IMAGE}
vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
disklabel -f ${DESTDIR}/etc/disktab -rw ${VND} ${DISKTYPE}
- newfs -B be -m 0 -o space -i ${INO_BYTES} -c 4 -t 5 -u 144 \
- -f 512 -b 4096 ${VND_RDEV}
+ newfs -B be -m 0 -o space -i 65536 -c 80 -f 512 -b 4096 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
- TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- KERNOBJDIR=${KERNOBJDIR} \
- TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
+ cp ${MDEC}/ofwboot ${MOUNT_POINT}/boot
+ cp netbsd.ram.gz ${MOUNT_POINT}/netbsd
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
@echo "installing new bootblocks"
- -rm -f ${MOUNT_POINT}/boot
- cp ${MDEC}/ofwboot ${MOUNT_POINT}/boot
sync
${MDEC}/installboot -v ${MOUNT_POINT}/boot ${MDEC}/bootxx ${VND_RDEV}
umount ${MOUNT_POINT}
@@ -69,7 +54,7 @@
mv netbsd.tmp.gz ${.TARGET}
clean cleandir distclean:
- /bin/rm -f *.core ${IMAGE} ${CLEANFILES}
+ rm -f *.core ${IMAGE} ${CLEANFILES}
real-floppy:
dd if=${IMAGE} of=${FD_RDEV} bs=45k
diff -r ebe335457942 -r efd33c9ea8a0 distrib/macppc/floppies/bootfloppy/list
--- a/distrib/macppc/floppies/bootfloppy/list Mon Jul 24 09:25:53 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# $NetBSD: list,v 1.1 1998/07/24 15:55:28 tsubai Exp $
-
-# copy the kernel
-COPY ${OBJDIR}/netbsd.ram.gz netbsd
Home |
Main Index |
Thread Index |
Old Index