Changeset 1601

Show
Ignore:
Timestamp:
11/14/02 14:23:07 (11 years ago)
Author:
khali
Message:

Take kernel source location from /lib/modules/x.x.x/build

Installation documentation updates

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/INSTALL

    r1439 r1601  
    33INSTALLATION INSTRUCTIONS 
    44 
    5 REQUIRES kernel 2.4.13 or later, or i2c-2.6.1 or later!!! 
     5REQUIRES i2c-2.6.6 or later!!! 
    66 
    77FOR 2.5 KERNELS, we do not recommend attempting to compile this package. 
     
    156156out by itself their settings, but it is possible to overrule them. A list 
    157157is found below. Most important are the variables that determine where 
    158 your kernel is located (LINUX=/usr/src/linux), where the i2c header files 
     158your kernel is located (LINUX=/lib/modules/KERNELVERSION/build, usually 
     159links to /usr/src/linux or something similar), where the i2c header files 
    159160are (I2C_HEADERS=/usr/local/include) and where you want to install  
    160 your modules (MODDIR=/lib/modules/KERNELVERSION/misc) and 
    161 header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see 
    162 that the installation locations are choosen in such a way that they 
    163 are separate from the true kernel. 
     161your modules (MODDIR=/lib/modules/KERNELVERSION) and header files 
     162(LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see that the 
     163installation locations are choosen in such a way that they are separate 
     164from the true kernel. 
    164165 
    165166Compilation is done by `make all'; `make install' installs the package. 
     
    178179  other shell. There have been conflicting reports on whether this is  
    179180  needed. 
    180 LINUX default: /usr/src/linux 
     181KERNELVERSION 
     182  The version of the currently running kernel. 
     183LINUX (default: /lib/modules/$(KERNELVERSION)/build) 
    181184  The location of your kernel tree. 
    182185COMPILE_KERNEL 
     
    190193  your kernel using the same version of this package, and just want to 
    191194  compile the user-space tools. 
    192 I2C_HEADERS default: /usr/local/include 
     195I2C_HEADERS (default: /usr/local/include) 
    193196  This lists where the i2c headers are found. If you used compilation 
    194197  option 1 for the i2c package, the default will be right. If you used 
     
    201204  determine this automatically, so you should not have to bother with  
    202205  this. 
    203 WARN default: 0 
    204   Generate additional compilation warnings; mainly interesting for 
    205   developers. 
    206206MODVER 
    207207  This must be set to 1 if CONFIG_MODVERSIONS is defined. The magic 
    208208  invocation should determine this automatically, so you should not 
    209209  have to bother with this. 
    210 DEBUG default: 0 
     210WARN (default: 0) 
     211  Generate additional compilation warnings; mainly interesting for 
     212  developers. 
     213DEBUG (default: 0) 
    211214  Some drivers will issue more debug information if you set this to 
    212215  1. Don't do it, unless you are a developer or are instructed to do 
    213216  so by the lm_sensors team. 
    214 PREFIX default: /usr/local 
    215   Prefix for almost all installation directories 
    216 MODDIR default: /lib/modules/KERNELVERSION/misc) 
    217   The location where the kernel modules will be installed.  
    218 ETCDIR default: /etc 
    219   Installation location of the sensors.conf configuration file 
    220 LIBDIR default: $(PREFIX)/lib 
     217PREFIX (default: /usr/local) 
     218  Prefix for almost all installation directories. 
     219MODPREF (default: /lib/modules/$(KERNELVERSION)) 
     220  The location where the kernel modules will be installed. 
     221ETCDIR (default: /etc) 
     222  Installation location of the sensors.conf configuration file. 
     223LIBDIR (default: $(PREFIX)/lib) 
    221224  Installation location of all static and shared libraries. 
    222 BINDIR default: $(PREFIX)/bin 
    223   Installation directory of programs useful for users 
    224 SBINDIR default: $(PREFIX)/sbin 
    225   Installation directory of system administrator-only programs 
    226 INCLUDEDIR default: $(PREFIX)/include 
    227   Base installation directory for include files (see next two vars) 
    228 SYSINCLUDEDIR default: $(INCLUDEDIR)/linux 
    229   Installation directory for system include files 
    230 LIBINCLUDEDIR default: $(INCLUDEDIR)/sensors 
     225BINDIR (default: $(PREFIX)/bin) 
     226  Installation directory of programs useful for users. 
     227SBINDIR (default: $(PREFIX)/sbin) 
     228  Installation directory of system administrator-only programs. 
     229INCLUDEDIR (default: $(PREFIX)/include) 
     230  Base installation directory for include files (see next two vars). 
     231SYSINCLUDEDIR (default: $(INCLUDEDIR)/linux) 
     232  Installation directory for system include files. 
     233LIBINCLUDEDIR (default: $(INCLUDEDIR)/sensors) 
    231234  Installation directory for libsensors include files. 
    232 MANDIR default: $(PREFIX)/man 
    233   Base installation directory for manual pages 
    234 MANOWN default: root 
    235   Owner of manual pages 
    236 MANGRP default: root 
    237   Group of manual pages 
     235MANDIR (default: $(PREFIX)/man) 
     236  Base installation directory for manual pages. 
     237MANOWN (default: root) 
     238  Owner of manual pages. 
     239MANGRP (default: root) 
     240  Group of manual pages. 
    238241 
    239242 
  • lm-sensors/trunk/Makefile

    r1548 r1601  
    2525# find bash. Or you can hope your sh-like shell understands all scripts. 
    2626# I think so, but I have not tested it. 
    27 # SHELL=/usr/bin/bash 
     27#SHELL := /usr/bin/bash 
     28 
     29# The currently running kernel version. This is used right below to 
     30# determine where the kernel sources can be found. 
     31KERNELVERSION := $(shell uname -r) 
    2832 
    2933# The location of linux itself. This is used to find the kernel headers 
    3034# and other things. 
    31 #LINUX=/usr/src/linux 
    32 LINUX=/lib/modules/$(shell uname -r)/build 
    33 LINUX_HEADERS=$(LINUX)/include 
     35#LINUX := /usr/src/linux 
     36LINUX := /lib/modules/$(KERNELVERSION)/build 
     37LINUX_HEADERS := $(LINUX)/include 
    3438 
    3539# Determine whether we need to compile the kernel modules, or only the 
     
    8286# The magic invocation will return something like this: 
    8387#   /lib/modules/2.2.15-ac9/misc 
    84 # MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
    85 MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     88#MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
     89#MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     90MODPREF := /lib/modules/$(KERNELVERSION) 
    8691 
    8792# This is the directory where sensors.conf will be installed, if no other