I'm not sure whether this is a correct way to do it,

but here's a new kernel option - "NO_LKM"

If anyone has better ideas - please let me know.
This commit is contained in:
dima 1998-02-11 20:47:55 +00:00
parent fa872f3d14
commit 8175420eed
4 changed files with 18 additions and 6 deletions

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.404 1998/02/11 15:36:46 jkh Exp $
# $Id: LINT,v 1.405 1998/02/11 17:37:55 yokota Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -1376,6 +1376,10 @@ options BOOTP_COMPAT # Workaround for broken bootp daemons.
#
options GATEWAY
# If you want to disable loadable kernel modules (LKM), you
# might want to use this option.
options NO_LKM
# More undocumented options for linting.
options CLK_CALIBRATION_LOOP

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.404 1998/02/11 15:36:46 jkh Exp $
# $Id: LINT,v 1.405 1998/02/11 17:37:55 yokota Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -1376,6 +1376,10 @@ options BOOTP_COMPAT # Workaround for broken bootp daemons.
#
options GATEWAY
# If you want to disable loadable kernel modules (LKM), you
# might want to use this option.
options NO_LKM
# More undocumented options for linting.
options CLK_CALIBRATION_LOOP

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.404 1998/02/11 15:36:46 jkh Exp $
# $Id: LINT,v 1.405 1998/02/11 17:37:55 yokota Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -1376,6 +1376,10 @@ options BOOTP_COMPAT # Workaround for broken bootp daemons.
#
options GATEWAY
# If you want to disable loadable kernel modules (LKM), you
# might want to use this option.
options NO_LKM
# More undocumented options for linting.
options CLK_CALIBRATION_LOOP

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kern_lkm.c,v 1.45 1997/11/06 19:29:11 phk Exp $
* $Id: kern_lkm.c,v 1.46 1998/01/24 02:54:34 eivind Exp $
*/
#include "opt_devfs.h"
@ -946,6 +946,6 @@ static void lkm_drvinit(void *unused)
}
}
#ifndef NO_LKM
SYSINIT(lkmdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,lkm_drvinit,NULL)
#endif