From 4d4b475b97470f213f7cdc0509bb50a87ffbd5c4 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 13 Apr 2002 17:27:07 +0000 Subject: [PATCH] Add support for optional extra install kernel suffixes (e.g. .srec or .bin), provided by the MDEXTRA_SUFFIXES.${kernel} variable. --- distrib/common/Makefile.mdset | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/distrib/common/Makefile.mdset b/distrib/common/Makefile.mdset index bfe25b73ee85..f4c925495e9c 100644 --- a/distrib/common/Makefile.mdset +++ b/distrib/common/Makefile.mdset @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.mdset,v 1.4 2002/04/12 13:39:45 lukem Exp $ +# $NetBSD: Makefile.mdset,v 1.5 2002/04/13 17:27:07 thorpej Exp $ # # Makefile snippet to ${MDSETIMAGE} file system images into kernels # @@ -34,6 +34,9 @@ _KERNEL.${_K}:= ${_F} .endif KERNELS+= ${_KERNEL.${_K}}.gz +.for suf in ${MDEXTRA_SUFFIXES.${_K}} +KERNELS+= ${_KERNEL.${_K}}.${suf}.gz +.endfor KERNELSYMS+= ${_KERNEL.${_K}}.symbols.gz ${_KERNEL.${_K}}.gz: .NOTMAIN ${KERNOBJDIR}/${_K}/netbsd ${_I} @@ -49,6 +52,11 @@ ${_KERNEL.${_K}}.gz: .NOTMAIN ${KERNOBJDIR}/${_K}/netbsd ${_I} gzip -9f netbsd.tmp mv netbsd.tmp.gz ${.TARGET} +.for suf in ${MDEXTRA_SUFFIXES.${_K}} +${_KERNEL.${_K}}.${suf}.gz: .NOTMAIN ${_KERNEL.${_K}}.gz + mv netbsd.${suf}.gz ${.TARGET} +.endfor + .endfor # } CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS} ${KERNELSYMS}