Make the install kernel images by installing the ramdisk image into them.

This commit is contained in:
matt 2000-11-12 00:56:13 +00:00
parent 94830b9252
commit be0f83d30a
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.1 2000/11/12 00:56:13 matt Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk>
.include <bsd.own.mk>
KERNELS= A7INST CATSINST RPCINST SHARKINST
STRIP?= strip
RAMDISK!= cd $(.CURDIR)/../ramdisk/; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk-${REV}.fs\n" | \
${MAKE} -s -f-
CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g}
all: ${KERNELS:C/^.*$/netbsd.&.gz/g}
.for kern in ${KERNELS}
netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK}
cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp
mdsetimage -v netbsd.tmp ${RAMDISK}
${STRIP} netbsd.tmp
gzip -9 netbsd.tmp
mv netbsd.tmp.gz ${.TARGET}
.endfor
clean cleandir distclean:
/bin/rm -f *.core ${CLEANFILES}
.include <bsd.obj.mk>