summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.own.mk
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2011-11-29 16:34:44 +0000
committerfjoe <fjoe@FreeBSD.org>2011-11-29 16:34:44 +0000
commit5f9c1025cef6244c48aa39fa82ea90d42586396c (patch)
treeef01e11f9b000a3be27c28fc99c8e771f661a104 /share/mk/bsd.own.mk
parenta441abaf37216453b02f58c8ecdc72019b820e86 (diff)
downloadFreeBSD-src-5f9c1025cef6244c48aa39fa82ea90d42586396c.zip
FreeBSD-src-5f9c1025cef6244c48aa39fa82ea90d42586396c.tar.gz
- fix WITH_CTF when specified in /etc/src.conf [1]
- CTFCONVERT_CMD=... is a hack (should be defined to empty string instead): make(1) should be taught to ignore empty commands silently in compat mode (as it does in !compat mode, GNU make also silently ignores empty commands) and to skip printing empty commands in !compat mode - config(8) should generate ${NORMAL_CTFCONVERT} invocation without '@': this will allow to simplify kern.pre.mk even more and lessen the number of shell invocations during kernel build when CTF is turned off - WITH_CTF can now be converted to usual MK_CTF=yes/no infrastructure Pointy hat to: fjoe [1]
Diffstat (limited to 'share/mk/bsd.own.mk')
-rw-r--r--share/mk/bsd.own.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 82ccefc..4791612 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -189,6 +189,12 @@ STRIP?= -s
COMPRESS_CMD?= gzip -cn
COMPRESS_EXT?= .gz
+.if defined(WITH_CTF)
+CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.else
+CTFCONVERT_CMD= ...
+.endif
+
.if !defined(_WITHOUT_SRCCONF)
#
# Define MK_* variables (which are either "yes" or "no") for users
OpenPOWER on IntegriCloud