Add support for optional extra install kernel suffixes (e.g. .srec

or .bin), provided by the MDEXTRA_SUFFIXES.${kernel} variable.
This commit is contained in:
thorpej 2002-04-13 17:27:07 +00:00
parent 45c8aefabf
commit 4d4b475b97

View File

@ -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}