diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-09-06 20:11:59 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-09-06 20:11:59 +0000 |
commit | 744841d62c658afd1348ea83c0163ab66c6b2fbf (patch) | |
tree | 877efe1ba8e1dfc14b7f8e3adfbad500bf576f69 /sys | |
parent | 6a423db16605c0b545010d5cda55188072bdbbf4 (diff) | |
download | FreeBSD-src-744841d62c658afd1348ea83c0163ab66c6b2fbf.zip FreeBSD-src-744841d62c658afd1348ea83c0163ab66c6b2fbf.tar.gz |
1) s/mod(un)?load/kld$1load/
2) s/MODLOAD/KMODLOAD/ to be consistent with the rest of the variables
(KMOD, KMODOWN, KMODGRP, etc) and definition of MODLOAD/UNLOAD in the
Makefile of the ATAPI module
3) textual fixups
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/kmod.mk | 42 | ||||
-rw-r--r-- | sys/modules/atapi/Makefile | 3 |
2 files changed, 24 insertions, 21 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 02a7a73..ae0ea21 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -1,7 +1,8 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 # $FreeBSD$ # -# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules. +# The include file <bsd.kmod.mk> handles installing Kernel Loadable Device +# drivers (KLD's). # # # +++ variables +++ @@ -12,31 +13,30 @@ # # KERN Main Kernel source directory. [${.CURDIR}/../../sys/kern] # -# KMOD The name of the loadable kernel module to build. +# KMOD The name of the kernel module to build. # -# KMODDIR Base path for loadable kernel modules -# (see kld(4)). [/modules] +# KMODDIR Base path for kernel modules (see kld(4)). [/modules] # -# KMODOWN LKM owner. [${BINOWN}] +# KMODOWN KLD owner. [${BINOWN}] # -# KMODGRP LKM group. [${BINGRP}] +# KMODGRP KLD group. [${BINGRP}] # -# KMODMODE LKM mode. [${BINMODE}] +# KMODMODE KLD mode. [${BINMODE}] # -# LINKS The list of LKM links; should be full pathnames, the +# LINKS The list of KLD links; should be full pathnames, the # linked-to file coming first, followed by the linked # file. The files are hard-linked. For example, to link # /modules/master and /modules/meister, use: # # LINKS= /modules/master /modules/meister # -# MODLOAD Command to load a kernel module [/sbin/modload] +# KMODLOAD Command to load a kernel module [/sbin/kldload] # -# MODUNLOAD Command to unload a kernel module [/sbin/modunload] +# KMODUNLOAD Command to unload a kernel module [/sbin/kldunload] # -# NOMAN LKM does not have a manual page if set. +# NOMAN KLD does not have a manual page if set. # -# PROG The name of the loadable kernel module to build. +# PROG The name of the kernel module to build. # If not supplied, ${KMOD}.o is used. # # SRCS List of source files @@ -67,18 +67,18 @@ # is executed. # # load: -# Load LKM. +# Load KLD. # # unload: -# Unload LKM. +# Unload KLD. # # bsd.obj.mk: clean, cleandir and obj # bsd.dep.mk: cleandepend, depend and tags # bsd.man.mk: maninstall # -MODLOAD?= /sbin/modload -MODUNLOAD?= /sbin/modunload +KMODLOAD?= /sbin/kldload +KMODUNLOAD?= /sbin/kldunload .if !target(__initialized__) __initialized__: @@ -99,7 +99,7 @@ CFLAGS+= -DKLD_MODULE _ICFLAGS:= ${CFLAGS:M-I*} CFLAGS+= -nostdinc -I- ${_ICFLAGS} -# Add -I paths for system headers. Individual LKM makefiles don't +# Add -I paths for system headers. Individual KLD makefiles don't # need any -I paths for this. Similar defaults for .PATH can't be # set because there are no standard paths for non-headers. CFLAGS+= -I${.OBJDIR} -I${.OBJDIR}/@ @@ -246,13 +246,13 @@ distribute: _SUBDIR .endif .if !target(load) -load: ${PROG} - ${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG} +load: ${PROG} install + ${KMODLOAD} ${KMOD} .endif .if !target(unload) -unload: ${PROG} - ${MODUNLOAD} -n ${KMOD} +unload: + ${KMODUNLOAD} ${KMOD} .endif .if exists(${.CURDIR}/../../kern) diff --git a/sys/modules/atapi/Makefile b/sys/modules/atapi/Makefile index a145312..b01c43d 100644 --- a/sys/modules/atapi/Makefile +++ b/sys/modules/atapi/Makefile @@ -10,6 +10,9 @@ EXPORT_SYMS = _atapi_mod _atapi_debug_ptr _atapi_intr_ptr \ _atapi_request_callback_ptr _atapi_request_immediate_ptr \ _atapi_request_wait_ptr _atapi_start_ptr +MODLOAD = /sbin/modload +MODUNLOAD = /sbin/modunload + load: ${PROG} ${MODLOAD} -u -e atapi_mod $(PROG) |