aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-12-26 12:43:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-12-26 12:43:44 +0000
commit8d8d775b8be5e57ef631209844e079a5df524841 (patch)
tree441699559e408c095c00525e4626070ae8422c40 /Mk
parent729a381c7f4c2ce7b0bf0d2acbbd3b96e36303e6 (diff)
downloadports-8d8d775b8be5e57ef631209844e079a5df524841.tar.gz
ports-8d8d775b8be5e57ef631209844e079a5df524841.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/kmod.mk9
1 files changed, 1 insertions, 8 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index 286b01f257fa..ce37c1171842 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -31,6 +31,7 @@ KMODDIR= /boot/modules
.endif
PLIST_SUB+= KMODDIR="${KMODDIR:C,^/,,}"
MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys" NO_XREF=yes
+PLIST_FILES+= "@kld ${KMODDIR}"
STRIP_CMD+= --strip-debug # do not strip kernel symbols
.endif
@@ -42,12 +43,4 @@ pre-install: ${STAGEDIR}${KMODDIR}
${STAGEDIR}${KMODDIR}:
@${MKDIR} ${.TARGET}
-kmod-post-install:
- @${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
-.if ${KMODDIR} != /boot/modules
- @${ECHO_CMD} "@unexec rmdir -p ${KMODDIR} 2>/dev/null || true" \
- >> ${TMPPLIST}
-.endif
-
.endif