summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-10-06 22:10:35 +0000
committerwosch <wosch@FreeBSD.org>1996-10-06 22:10:35 +0000
commit593021f662304ea02106f06dd32c2b7a22728a2b (patch)
tree7e896bdda81d2e80c3cbec1cdb8f9c9376024db3 /sys/conf/kmod.mk
parente31664a6a3a4ec1e05f757c261a0113db11f9edf (diff)
downloadFreeBSD-src-593021f662304ea02106f06dd32c2b7a22728a2b.zip
FreeBSD-src-593021f662304ea02106f06dd32c2b7a22728a2b.tar.gz
add variables MODLOAD and MODUNLOAD for modlad/modunload commands
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 99b41e0..98ce1a1 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.25 1996/08/31 14:46:58 bde Exp $
+# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@@ -37,10 +37,14 @@
#
# LN_FLAGS Flags for ln(1) (see variable LINKS)
#
+# MODLOAD Command to load a kernel module [/sbin/modload]
+#
+# MODUNLOAD Command to unload a kernel module [/sbin/modunload]
+#
# NOMAN LKM does not have a manual page if set.
#
# PROG The name of the loadable kernel module to build.
-# If not supplied, ${KMOD} is used.
+# If not supplied, ${KMOD}.o is used.
#
# PSEUDO_LKM ???
#
@@ -80,6 +84,9 @@
# bsd.man.mk: maninstall
#
+MODLOAD?= /sbin/modload
+MODUNLOAD?= /sbin/modunload
+
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
@@ -193,12 +200,12 @@ tags: ${SRCS} _SUBDIR
.if !target(load)
load: ${PROG}
- /sbin/modload -o ${KMOD} -e${KMOD} ${PROG}
+ ${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG}
.endif
.if !target(unload)
unload: ${PROG}
- /sbin/modunload -n ${KMOD}
+ ${MODUNLOAD} -n ${KMOD}
.endif
KERN= ${.CURDIR}/../../sys/kern
OpenPOWER on IntegriCloud