Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/common Add MDSET_NOSTRIP and MDSET_NOSYMBOLS; global...
details: https://anonhg.NetBSD.org/src/rev/e217a28e175d
branches: trunk
changeset: 553986:e217a28e175d
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Oct 24 00:11:24 2003 +0000
description:
Add MDSET_NOSTRIP and MDSET_NOSYMBOLS; global versions of the "per ${FILE}"
equivalents that currently exist.
diffstat:
distrib/common/Makefile.mdset | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r bb1425255512 -r e217a28e175d distrib/common/Makefile.mdset
--- a/distrib/common/Makefile.mdset Thu Oct 23 23:52:16 2003 +0000
+++ b/distrib/common/Makefile.mdset Fri Oct 24 00:11:24 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mdset,v 1.22 2003/07/10 10:34:05 lukem Exp $
+# $NetBSD: Makefile.mdset,v 1.23 2003/10/24 00:11:24 lukem Exp $
#
# Makefile snippet to ${TOOL_MDSETIMAGE} file system images into kernels
#
@@ -25,8 +25,12 @@
# Optional variables:
# MDSET_RELEASEDIR Where to install release kernels.
#
+# MDSET_NOSTRIP If defined, don't strip any kernels.
+#
# MDSET_NOSTRIP.${FILENAME} If defined, don't strip ${FILENAME}
#
+# MDSET_NOSYMBOLS If defined, don't generate *.symbols.gz
+#
# MDSET_NOSYMBOLS.${FILENAME} If defined, don't generate
# ${FILENAME}.symbols.gz
#
@@ -90,7 +94,7 @@
.endfor # }
-.if !defined(MDSET_NOSYMBOLS.${_FILENAME})
+.if !defined(MDSET_NOSYMBOLS.${_FILENAME}) && !defined(MDSET_NOSYMBOLS)
KERNELSYMS+= ${_KERNEL.${_K}.${_F}}.symbols.gz
.endif
@@ -105,10 +109,10 @@
@rm -f ${.TARGET} ${.TARGET}.symbols.gz
@cp ${_KERNNAME.${_K}.${_F}} ${.TARGET}
${TOOL_MDSETIMAGE} -v ${.TARGET} ${_I}
-.if !defined(MDSET_NOSYMBOLS.${_FILENAME})
+.if !defined(MDSET_NOSYMBOLS.${_FILENAME}) && !defined(MDSET_NOSYMBOLS)
${NM} ${.TARGET} | gzip -9 > ${.TARGET}.symbols.gz
.endif
-.if !defined(MDSET_NOSTRIP.${_FILENAME})
+.if !defined(MDSET_NOSTRIP.${_FILENAME}) && !defined(MDSET_NOSTRIP)
${STRIP} ${.TARGET}
.endif
.if defined(MDSET_POST.${_FILENAME})
Home |
Main Index |
Thread Index |
Old Index