Changeset 3484

Show
Ignore:
Timestamp:
07/09/00 22:35:42 (13 years ago)
Author:
frodo
Message:

MODDIR changes, as promised

Location:
i2c/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/INSTALL

    r3479 r3484  
    7171is found below. Most important are the variables that determine where 
    7272your kernel is located (LINUX=/usr/src/linux) and where you want to 
    73 install your modules (MODDIR=/lib/modules/KERNELVERSION/extra/misc) and 
     73install your modules (MODDIR=/lib/modules/KERNELVERSION/misc) and 
    7474header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see 
    7575that the installation locations are choosen in such a way that they 
     
    134134  invocation should determine this automatically, so you should not 
    135135  have to bother with this. 
    136 MODDIR (both) default: /lib/modules/KERNELVERSION/extra/misc) 
     136MODDIR (both) default: /lib/modules/KERNELVERSION/misc) 
    137137  The location where the kernel modules will be installed.  
    138138LINUX_INCLUDE_DIR (compilation option 1 only) default: /usr/local/include/linux 
     
    146146=========================================== 
    147147 
    148 Once you have installed the kernel modules, you will have to make sure 
    149 they are found. 
    150  
    151 First, check whether your modutils will look in the right directory at 
    152 all. If you used build system 1, you will probably have to add lines 
    153 to /etc/conf.modules or /etc/modules.conf (use the one that exists, or 
    154 take your pick): 
    155   (modules-2.0.0): 
    156     path[misc]=/lib/modules/current/extra/misc 
    157   (modutils-2.1.x): 
    158     path=/lib/modules/current/extra 
    159 This assumes /lib/modules/current will always be linked to the correct 
    160 modules tree. If not, you will have to change it as appropriate for 
    161 your system. 
    162  
    163 You may also have to add all default paths to this file. You can get 
    164 a list of them by doing a `modprobe -c', before and after your changes. 
    165  
    166 Next, you will have to run `depmod -a' to have them recognised. Most 
     148Run `depmod -a' to have new modules them recognised. Most 
    167149distributions run this command when you boot, so if you were cross- 
    168150compiling, you can skip this step. 
  • i2c/trunk/Makefile

    r3465 r3484  
    5959# This is the directory into which the modules will be installed. 
    6060# The magic invocation will return something like this: 
    61 #   /lib/modules/2.2.15-ac9/extra/misc 
    62 MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/extra/misc 
     61#   /lib/modules/2.2.15-ac9/misc 
     62MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
    6363 
    6464# This is the directory into which the header files will be installed. 
  • i2c/trunk/QUICKSTART

    r3479 r3484  
    1010  * Do a `make' followed by a `make install'. The warnings about .d 
    1111    files at the start are harmless. 
    12   * Add the line  
    13        path=/lib/modules/current/extra 
    14     to /etc/conf.modules or /etc/modules.conf (whichever one exists) 
    15     Depending on your version of modutils, you may have to add all 
    16     default paths to it too. 
    1712  * Make sure you do a `depmod -a'. 
    1813  * That's all (but you need client drivers from some other source to do