summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-11 01:09:24 +0000
committerpeter <peter@FreeBSD.org>2001-09-11 01:09:24 +0000
commit808991de7cecc9e774ffe5031e29362207e75564 (patch)
tree7b0e7fbc20bd6b09f4224a1d0187a77c9f747184 /sys/conf/kmod.mk
parentf07a058a30186a596af1595909ea89573a1a794f (diff)
downloadFreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.zip
FreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.tar.gz
Implement the long-awaited module->file cache database. A userland
tool (kldxref(8)) keeps a cache of what modules and versions are inside what .ko files. I have tested this on both Alpha and i386. Submitted by: bp
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index b2109a5..ddf3abc 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -237,6 +237,9 @@ realinstall: _SUBDIR
ln -fs $$l $$t; \
done; true
.endif
+.if !defined(NO_XREF)
+ kldxref ${DESTDIR}${KMODDIR}
+.endif
install: afterinstall _SUBDIR
.if !defined(NOMAN)
OpenPOWER on IntegriCloud