mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
Uses/kmod.mk: add support for debug versions of kernel modules.
Submitted by: glebius via private mail
This commit is contained in:
parent
21c435db82
commit
03b9b0f1f5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428233
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user