kmod.mk: Don't split out debug symbols if requested
authorConrad Meyer <cem@FreeBSD.org>
Tue, 23 Jun 2020 18:25:31 +0000 (18:25 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Tue, 23 Jun 2020 18:25:31 +0000 (18:25 +0000)
commit9b6edf364eb05aca4709732136e92a6ab739bb36
treee1b13a32f5fb33e79db48b76be6ed011e821902a
parent4287cc440c9da24d24e125e22ac3671e9c3efc9e
kmod.mk: Don't split out debug symbols if requested

Ports bsd.kmod.mk explicitly sets MK_KERNEL_SYMBOLS=no to prevent auto-
splitting of debuginfo from kernel modules.  If that knob is set, don't
split out a .ko.debug and .ko from .ko.full; just generate a .ko with
debuginfo and leave it be.

Otherwise, with DEBUG_FLAGS set and MK_KERNEL_SYMBOLS=no, we would helpfully
strip out the debuginfo from the .ko.full and then not install it.  That is
not the desired result a WITH_DEBUG port kmod build.

Reviewed by: emaste, jhb
Differential Revision: https://reviews.freebsd.org/D24835
sys/conf/kmod.mk