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:
parent
45c8aefabf
commit
4d4b475b97
@ -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
|
# Makefile snippet to ${MDSETIMAGE} file system images into kernels
|
||||||
#
|
#
|
||||||
@ -34,6 +34,9 @@ _KERNEL.${_K}:= ${_F}
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
KERNELS+= ${_KERNEL.${_K}}.gz
|
KERNELS+= ${_KERNEL.${_K}}.gz
|
||||||
|
.for suf in ${MDEXTRA_SUFFIXES.${_K}}
|
||||||
|
KERNELS+= ${_KERNEL.${_K}}.${suf}.gz
|
||||||
|
.endfor
|
||||||
KERNELSYMS+= ${_KERNEL.${_K}}.symbols.gz
|
KERNELSYMS+= ${_KERNEL.${_K}}.symbols.gz
|
||||||
|
|
||||||
${_KERNEL.${_K}}.gz: .NOTMAIN ${KERNOBJDIR}/${_K}/netbsd ${_I}
|
${_KERNEL.${_K}}.gz: .NOTMAIN ${KERNOBJDIR}/${_K}/netbsd ${_I}
|
||||||
@ -49,6 +52,11 @@ ${_KERNEL.${_K}}.gz: .NOTMAIN ${KERNOBJDIR}/${_K}/netbsd ${_I}
|
|||||||
gzip -9f netbsd.tmp
|
gzip -9f netbsd.tmp
|
||||||
mv netbsd.tmp.gz ${.TARGET}
|
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 # }
|
.endfor # }
|
||||||
|
|
||||||
CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS} ${KERNELSYMS}
|
CLEANFILES+= netbsd.tmp netbsd.tmp.gz ${KERNELS} ${KERNELSYMS}
|
||||||
|
Loading…
Reference in New Issue
Block a user