From 6ce8bed0fd6ceabd051e48609b61e8f8d66d316a Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 16 Apr 2000 04:16:12 +0000 Subject: [PATCH] - add a "netbsd.ram" target so we can build a kernel that has an embedded filesystem but don't need/want to compress it. - use "KERN?=" so that "make KERN=/path/to/my/netbsd" works. --- distrib/sparc/bootfs/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/distrib/sparc/bootfs/Makefile b/distrib/sparc/bootfs/Makefile index 18d88b880ce2..725e36ce8978 100644 --- a/distrib/sparc/bootfs/Makefile +++ b/distrib/sparc/bootfs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2000/03/08 21:58:10 cjs Exp $ +# $NetBSD: Makefile,v 1.17 2000/04/16 04:16:12 mrg Exp $ TOP= ${.CURDIR}/.. MINIROOT= ${.CURDIR}/../../miniroot @@ -7,7 +7,7 @@ MINIROOT= ${.CURDIR}/../../miniroot .include # So we use /etc/mk.conf. -KERN= ${TOP}/../../sys/arch/sparc/compile/INSTALL/netbsd +KERN?= ${TOP}/../../sys/arch/sparc/compile/INSTALL/netbsd MOUNT_POINT?= /mnt VND?= vnd0 @@ -58,6 +58,11 @@ unconfig: -umount -f ${MOUNT_POINT} -vnconfig -u ${VND_DEV} +netbsd.ram: ${KERN} ${RAMDISK} + cp ${KERN} netbsd.tmp + mdsetimage -v netbsd.tmp ${RAMDISK} + mv netbsd.tmp ${.TARGET} + netbsd.ram.gz: ${KERN} ${RAMDISK} cp ${KERN} netbsd.tmp mdsetimage -v netbsd.tmp ${RAMDISK}