diff options
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/kmod.mk | 9 |
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 |