aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-12-26 20:43:44 +0800
committerbapt <bapt@FreeBSD.org>2014-12-26 20:43:44 +0800
commit8583a634691cf4f3f3a7528c6a0a7a1bc92de839 (patch)
tree441699559e408c095c00525e4626070ae8422c40 /Mk
parentf75f09910cec22ece8dcc5856786255f0808f97d (diff)
downloadfreebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.tar.gz
freebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.tar.zst
freebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.zip
Use a custom keyword for kldxref, that allows to control exactly when it is run
and work nicer with automatic directly support from pkg Differential Revision: https://reviews.freebsd.org/D1377 Reviewed by: rene, antoine Approved by: rene
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