Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/common Add support for optional extra install kernel...



details:   https://anonhg.NetBSD.org/src/rev/52e69faccbea
branches:  trunk
changeset: 525602:52e69faccbea
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 13 17:27:07 2002 +0000

description:
Add support for optional extra install kernel suffixes (e.g. .srec
or .bin), provided by the MDEXTRA_SUFFIXES.${kernel} variable.

diffstat:

 distrib/common/Makefile.mdset |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 87d9f190e1ea -r 52e69faccbea distrib/common/Makefile.mdset
--- a/distrib/common/Makefile.mdset     Sat Apr 13 17:06:53 2002 +0000
+++ b/distrib/common/Makefile.mdset     Sat Apr 13 17:27:07 2002 +0000
@@ -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 @@
 .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 @@
        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}



Home | Main Index | Thread Index | Old Index