Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src As discussed on tech-toolchain, offer a new make variable MK...
details: https://anonhg.NetBSD.org/src/rev/6cb8ba17b427
branches: trunk
changeset: 329082:6cb8ba17b427
user: martin <martin%NetBSD.org@localhost>
date: Mon May 05 19:06:29 2014 +0000
description:
As discussed on tech-toolchain, offer a new make variable MKKDEBUG - if
set to "yes", kernel builds will gain debug info and a netbsd.gdb will
be created (same as adding "makeoptions DEBUG=-g" to the config file).
diffstat:
share/mk/bsd.README | 6 +++++-
sys/conf/Makefile.kern.inc | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r bbb6b2dd2aaa -r 6cb8ba17b427 share/mk/bsd.README
--- a/share/mk/bsd.README Mon May 05 19:04:47 2014 +0000
+++ b/share/mk/bsd.README Mon May 05 19:06:29 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.330 2014/04/18 00:37:46 christos Exp $
+# $NetBSD: bsd.README,v 1.331 2014/05/05 19:06:29 martin Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -234,6 +234,10 @@
(depends on libpthread.)
Default: yes
+MKKDEBUG If "yes", force building of kernel symbol info and creation
+ of netbsd.gdb in all kernel builds, independently of the
+ settings for "makeoptions DEBUG" in the kernel config file.
+
MKKERBEROS If "no", disables building of Kerberos v5
infrastructure (libraries and support programs).
Default: yes
diff -r bbb6b2dd2aaa -r 6cb8ba17b427 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Mon May 05 19:04:47 2014 +0000
+++ b/sys/conf/Makefile.kern.inc Mon May 05 19:06:29 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.167 2014/03/10 02:36:50 ozaki-r Exp $
+# $NetBSD: Makefile.kern.inc,v 1.168 2014/05/05 19:06:29 martin Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -17,6 +17,11 @@
#
# all ports are expected to include bsd.own.mk for toolchain settings
+# Default DEBUG to -g if kernel debug info is requested by MKKDEBUG=yes
+.if defined(MKKDEBUG) && ${MKKDEBUG} == "yes"
+DEBUG?=-g
+.endif
+
##
## (0) toolchain settings for things that aren't part of the standard
## toolchain
Home |
Main Index |
Thread Index |
Old Index