- 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.
This commit is contained in:
mrg 2000-04-16 04:16:12 +00:00
parent 784ea78445
commit 6ce8bed0fd
1 changed files with 7 additions and 2 deletions

View File

@ -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 <bsd.own.mk> # 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}