Add MKCTF

This variable separates CTF stuffs from MKDTRACE; we can build DTrace
solely without building and using them. This allows us to use DTrace
even if CTF stuffs have problems (actually they have now).

This variable would be merged into MKDTRACE eventually, once CTF stuffs
work correctly again.
This commit is contained in:
ozaki-r 2014-03-25 09:52:55 +00:00
parent 9a1cd017d1
commit 1339b2cc13
11 changed files with 45 additions and 29 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1886 2014/03/24 13:42:40 hannken Exp $
# $NetBSD: mi,v 1.1887 2014/03/25 09:52:55 ozaki-r Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -20,9 +20,9 @@
./usr/bin/config comp-util-bin
./usr/bin/crunchgen comp-c-bin
./usr/bin/crunchide comp-c-bin
./usr/bin/ctfconvert comp-util-bin dtrace
./usr/bin/ctfdump comp-util-bin dtrace
./usr/bin/ctfmerge comp-util-bin dtrace
./usr/bin/ctfconvert comp-util-bin ctf
./usr/bin/ctfdump comp-util-bin ctf
./usr/bin/ctfmerge comp-util-bin ctf
./usr/bin/cvs comp-cvs-bin cvs
./usr/bin/cvsbug comp-cvs-bin cvs
./usr/bin/elfedit comp-util-bin binutils

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1465 2014/03/19 15:26:41 nonaka Exp $
# $NetBSD: mi,v 1.1466 2014/03/25 09:52:55 ozaki-r Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -125,9 +125,9 @@
./usr/share/man/cat1/csh.0 man-util-catman .cat
./usr/share/man/cat1/csplit.0 man-util-catman .cat
./usr/share/man/cat1/ctags.0 man-c-catman .cat
./usr/share/man/cat1/ctfconvert.0 man-util-catman .cat,dtrace
./usr/share/man/cat1/ctfdump.0 man-util-catman .cat,dtrace
./usr/share/man/cat1/ctfmerge.0 man-util-catman .cat,dtrace
./usr/share/man/cat1/ctfconvert.0 man-util-catman .cat,ctf
./usr/share/man/cat1/ctfdump.0 man-util-catman .cat,ctf
./usr/share/man/cat1/ctfmerge.0 man-util-catman .cat,ctf
./usr/share/man/cat1/cu.0 man-util-catman .cat
./usr/share/man/cat1/cut.0 man-util-catman .cat
./usr/share/man/cat1/daicctl.0 man-sysutil-catman .cat
@ -3240,9 +3240,9 @@
./usr/share/man/html1/csh.html man-util-htmlman html
./usr/share/man/html1/csplit.html man-util-htmlman html
./usr/share/man/html1/ctags.html man-c-htmlman html
./usr/share/man/html1/ctfconvert.html man-util-htmlman html,dtrace
./usr/share/man/html1/ctfdump.html man-util-htmlman html,dtrace
./usr/share/man/html1/ctfmerge.html man-util-htmlman html,dtrace
./usr/share/man/html1/ctfconvert.html man-util-htmlman html,ctf
./usr/share/man/html1/ctfdump.html man-util-htmlman html,ctf
./usr/share/man/html1/ctfmerge.html man-util-htmlman html,ctf
./usr/share/man/html1/cu.html man-util-htmlman html
./usr/share/man/html1/cut.html man-util-htmlman html
./usr/share/man/html1/daicctl.html man-sysutil-htmlman html
@ -5963,9 +5963,9 @@
./usr/share/man/man1/csh.1 man-util-man .man
./usr/share/man/man1/csplit.1 man-util-man .man
./usr/share/man/man1/ctags.1 man-c-man .man
./usr/share/man/man1/ctfconvert.1 man-util-man .man,dtrace
./usr/share/man/man1/ctfdump.1 man-util-man .man,dtrace
./usr/share/man/man1/ctfmerge.1 man-util-man .man,dtrace
./usr/share/man/man1/ctfconvert.1 man-util-man .man,ctf
./usr/share/man/man1/ctfdump.1 man-util-man .man,ctf
./usr/share/man/man1/ctfmerge.1 man-util-man .man,ctf
./usr/share/man/man1/cu.1 man-util-man .man
./usr/share/man/man1/cut.1 man-util-man .man
./usr/share/man/man1/daicctl.1 man-sysutil-man .man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.params,v 1.10 2014/01/26 17:33:53 apb Exp $
# $NetBSD: Makefile.params,v 1.11 2014/03/25 09:52:55 ozaki-r Exp $
#
# Makefile fragment for printing build parameters.
#
@ -44,7 +44,7 @@ RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID BUILDSEED \
MACHINE MACHINE_ARCH MAKE MAKECONF MAKEFLAGS \
MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE \
MKARZERO MKATF MKBFD MKBINUTILS MKCATPAGES \
MKCRYPTO MKCRYPTO_RC5 MKCVS \
MKCRYPTO MKCRYPTO_RC5 MKCTF MKCVS \
MKDEBUG MKDEBUGLIB MKDOC MKDTRACE MKDYNAMICROOT \
MKGCC MKGCCCMDS MKGDB \
MKHESIOD MKHTML MKIEEEFP MKINET6 MKINFO MKIPFILTER \

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.2 2010/02/25 00:14:10 darran Exp $
# $NetBSD: Makefile,v 1.3 2014/03/25 09:52:55 ozaki-r Exp $
.include <bsd.own.mk>
# We need more modular flag e.g. we can add dtrace to osnet later
.if ( ${MKZFS} != "no" || ${MKDTRACE} != "no" )
.if ( ${MKZFS} != "no" || ${MKDTRACE} != "no" || ${MKCTF} != "no")
SUBDIR+= osnet
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2013/09/11 23:04:10 joerg Exp $
# $NetBSD: Makefile,v 1.6 2014/03/25 09:52:55 ozaki-r Exp $
#
#
@ -6,6 +6,8 @@
.if (defined(MKDTRACE) && ${MKDTRACE} != "no")
SUBDIR+= libdtrace
.endif
.if ${MKDTRACE:Uno} != "no" || ${MKCTF:Uno} != "no"
SUBDIR+= libctf
.endif

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.2 2010/02/21 01:46:36 darran Exp $
# $NetBSD: Makefile,v 1.3 2014/03/25 09:52:55 ozaki-r Exp $
.include <bsd.own.mk>
.if ${MKDTRACE} != "no"
.if ${MKCTF} != "no"
SUBDIR+= ctfconvert ctfmerge ctfdump
.endif

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mk.conf.5,v 1.67 2013/06/02 11:02:40 mbalmer Exp $
.\" $NetBSD: mk.conf.5,v 1.68 2014/03/25 09:52:55 ozaki-r Exp $
.\"
.\" Copyright (c) 1999-2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -325,6 +325,13 @@ is compiled with support for
.In complex.h .
.DFLTy
.
.It Sy MKCTF
.YorN
Indicates whether CTF tools are to be built and installed.
If yes, the tools will be used to generate and manipulate
CTF data of ELF binaries during build.
.DFLTn
.
.It Sy MKCRYPTO
.YorN
Indicates whether cryptographic code will be included in a build;

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.328 2014/02/24 07:23:41 skrll Exp $
# $NetBSD: bsd.README,v 1.329 2014/03/25 09:52:55 ozaki-r Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@ -146,6 +146,11 @@ MKCRYPTO If "no", no cryptography support will be built into the system,
MKCRYPTO_RC5 If not "no", RC5 support will be built into libcrypto_rc5
Default: no
MKCTF If "no", do not build and install CTF tools, and also
don't generate and manipulate CTF data of ELF binaries
during build.
Default: no
MKCVS If "no", don't build or install cvs(1).
Default: yes

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.791 2014/03/24 21:25:03 joerg Exp $
# $NetBSD: bsd.own.mk,v 1.792 2014/03/25 09:52:55 ozaki-r Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -505,7 +505,7 @@ FC= ${TOOL_FC.${ACTIVE_FC}}
OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}}
# Override with tools versions if needed
.if exists(${TOOL_CTFCONVERT}) && exists(${TOOL_CTFMERGE})
.if ${MKCTF:Uno} != "no" && exists(${TOOL_CTFCONVERT}) && exists(${TOOL_CTFMERGE})
CTFCONVERT= ${TOOL_CTFCONVERT}
CTFMERGE= ${TOOL_CTFMERGE}
.endif
@ -972,7 +972,7 @@ MKGCCCMDS?= ${MKGCC}
#
_MKVARS.no= \
MKBSDGREP MKBSDTAR \
MKCATPAGES MKCRYPTO_RC5 MKDEBUG \
MKCATPAGES MKCRYPTO_RC5 MKCTF MKDEBUG \
MKDEBUGLIB MKDTRACE MKEXTSRC \
MKKYUA MKLLD MKLLDB MKLINT \
MKMANZ MKMCLINKER MKOBJDIRS \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.289 2014/03/09 18:00:51 christos Exp $
# $NetBSD: bsd.prog.mk,v 1.290 2014/03/25 09:52:55 ozaki-r Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@ -62,7 +62,7 @@ OBJCFLAGS+= ${OBJCOPTS}
MKDEP_SUFFIXES?= .o .ln
# CTF preserve debug symbols
.if defined(MKDTRACE) && (${MKDTRACE} != "no") && (${CFLAGS:M-g} != "")
.if (${MKCTF:Uno} != "no") && (${CFLAGS:M-g} != "")
CTFFLAGS+= -g
CTFMFLAGS+= -g
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.171 2014/02/24 07:23:44 skrll Exp $
# $NetBSD: Makefile,v 1.172 2014/03/25 09:52:56 ozaki-r Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@ -69,6 +69,8 @@ DTRACE_BITS=
DTRACE_BITS+= .WAIT libelf
DTRACE_BITS+= .WAIT libdwarf
DTRACE_BITS+= .WAIT libctf
.endif
.if ${MKCTF} != "no"
DTRACE_BITS+= .WAIT ctfconvert ctfmerge
.endif