diff options
author | rene <rene@FreeBSD.org> | 2016-12-10 02:47:09 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2016-12-10 02:47:09 +0800 |
commit | 027ac7b4eecad3546e6124fedb8605268712e4a2 (patch) | |
tree | 60a2417a41b967e2013f588cb6fac9e0dc617bf4 /Mk | |
parent | 5d58b95c2abb9a469c33658057746a66d712a8ff (diff) | |
download | freebsd-ports-gnome-027ac7b4eecad3546e6124fedb8605268712e4a2.tar.gz freebsd-ports-gnome-027ac7b4eecad3546e6124fedb8605268712e4a2.tar.zst freebsd-ports-gnome-027ac7b4eecad3546e6124fedb8605268712e4a2.zip |
Uses/kmod.mk: add support for debug versions of kernel modules.
Submitted by: glebius via private mail
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/kmod.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk index f9aa4be155fb..28c18e63805b 100644 --- a/Mk/Uses/kmod.mk +++ b/Mk/Uses/kmod.mk @@ -34,13 +34,19 @@ MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" NO_XREF=yes PLIST_FILES+= "@kld ${KMODDIR}" STRIP_CMD+= --strip-debug # do not strip kernel symbols +KERN_DEBUGDIR?= ${DEBUGDIR} .endif .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_KMOD_POST_MK) _INCLUDE_USES_KMOD_POST_MK= yes _USES_install+= 290:${STAGEDIR}${KMODDIR} +_USES_install+= 291:${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR} + ${STAGEDIR}${KMODDIR}: @${MKDIR} ${.TARGET} +${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR}: + @${MKDIR} ${.TARGET} + .endif |