summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2002-11-14 13:23:07 +0000
committerJean Delvare <khali@linux-fr.org>2002-11-14 13:23:07 +0000
commit766ac8021e0270be1d2827bf9fc0b40f74258336 (patch)
tree5f799f639fc62b688e7fb17101aa7e58b3002695
parent8905e3d688f06281016b18c9e4ba0eef2f91d8cc (diff)
downloadlm-sensors-git-766ac8021e0270be1d2827bf9fc0b40f74258336.tar.gz
Take kernel source location from /lib/modules/x.x.x/build
Installation documentation updates git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1601 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--INSTALL71
-rw-r--r--Makefile17
2 files changed, 48 insertions, 40 deletions
diff --git a/INSTALL b/INSTALL
index d1e7ae7d..2acab959 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2,7 +2,7 @@
INSTALLATION INSTRUCTIONS
-REQUIRES kernel 2.4.13 or later, or i2c-2.6.1 or later!!!
+REQUIRES i2c-2.6.6 or later!!!
FOR 2.5 KERNELS, we do not recommend attempting to compile this package.
Use kernel patches linked from our download page instead!!!
@@ -155,12 +155,13 @@ At the top of the Makefile are a couple of configuration variables that
you may want to change. As far as possible, the Makefile tries to figure
out by itself their settings, but it is possible to overrule them. A list
is found below. Most important are the variables that determine where
-your kernel is located (LINUX=/usr/src/linux), where the i2c header files
+your kernel is located (LINUX=/lib/modules/KERNELVERSION/build, usually
+links to /usr/src/linux or something similar), where the i2c header files
are (I2C_HEADERS=/usr/local/include) and where you want to install
-your modules (MODDIR=/lib/modules/KERNELVERSION/misc) and
-header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see
-that the installation locations are choosen in such a way that they
-are separate from the true kernel.
+your modules (MODDIR=/lib/modules/KERNELVERSION) and header files
+(LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see that the
+installation locations are choosen in such a way that they are separate
+from the true kernel.
Compilation is done by `make all'; `make install' installs the package.
You will get a lot of warnings about files which are not found, all
@@ -177,7 +178,9 @@ SHELL (default: /bin/sh)
You may have to specify the full path to Bash here, if /bin/sh is some
other shell. There have been conflicting reports on whether this is
needed.
-LINUX default: /usr/src/linux
+KERNELVERSION
+ The version of the currently running kernel.
+LINUX (default: /lib/modules/$(KERNELVERSION)/build)
The location of your kernel tree.
COMPILE_KERNEL
Determine whether you want to consider the kernel modules for compilation
@@ -189,7 +192,7 @@ COMPILE_KERNEL
You may want to set this to 0 if you have just patched and compiled
your kernel using the same version of this package, and just want to
compile the user-space tools.
-I2C_HEADERS default: /usr/local/include
+I2C_HEADERS (default: /usr/local/include)
This lists where the i2c headers are found. If you used compilation
option 1 for the i2c package, the default will be right. If you used
compilation options 2 or 3, it will not, and may actually cause
@@ -200,41 +203,41 @@ SMP
This must be set to 1 for a SMP kernel. The magic invocation should
determine this automatically, so you should not have to bother with
this.
-WARN default: 0
- Generate additional compilation warnings; mainly interesting for
- developers.
MODVER
This must be set to 1 if CONFIG_MODVERSIONS is defined. The magic
invocation should determine this automatically, so you should not
have to bother with this.
-DEBUG default: 0
+WARN (default: 0)
+ Generate additional compilation warnings; mainly interesting for
+ developers.
+DEBUG (default: 0)
Some drivers will issue more debug information if you set this to
1. Don't do it, unless you are a developer or are instructed to do
so by the lm_sensors team.
-PREFIX default: /usr/local
- Prefix for almost all installation directories
-MODDIR default: /lib/modules/KERNELVERSION/misc)
- The location where the kernel modules will be installed.
-ETCDIR default: /etc
- Installation location of the sensors.conf configuration file
-LIBDIR default: $(PREFIX)/lib
+PREFIX (default: /usr/local)
+ Prefix for almost all installation directories.
+MODPREF (default: /lib/modules/$(KERNELVERSION))
+ The location where the kernel modules will be installed.
+ETCDIR (default: /etc)
+ Installation location of the sensors.conf configuration file.
+LIBDIR (default: $(PREFIX)/lib)
Installation location of all static and shared libraries.
-BINDIR default: $(PREFIX)/bin
- Installation directory of programs useful for users
-SBINDIR default: $(PREFIX)/sbin
- Installation directory of system administrator-only programs
-INCLUDEDIR default: $(PREFIX)/include
- Base installation directory for include files (see next two vars)
-SYSINCLUDEDIR default: $(INCLUDEDIR)/linux
- Installation directory for system include files
-LIBINCLUDEDIR default: $(INCLUDEDIR)/sensors
+BINDIR (default: $(PREFIX)/bin)
+ Installation directory of programs useful for users.
+SBINDIR (default: $(PREFIX)/sbin)
+ Installation directory of system administrator-only programs.
+INCLUDEDIR (default: $(PREFIX)/include)
+ Base installation directory for include files (see next two vars).
+SYSINCLUDEDIR (default: $(INCLUDEDIR)/linux)
+ Installation directory for system include files.
+LIBINCLUDEDIR (default: $(INCLUDEDIR)/sensors)
Installation directory for libsensors include files.
-MANDIR default: $(PREFIX)/man
- Base installation directory for manual pages
-MANOWN default: root
- Owner of manual pages
-MANGRP default: root
- Group of manual pages
+MANDIR (default: $(PREFIX)/man)
+ Base installation directory for manual pages.
+MANOWN (default: root)
+ Owner of manual pages.
+MANGRP (default: root)
+ Group of manual pages.
diff --git a/Makefile b/Makefile
index b34f697e..06fa51d9 100644
--- a/Makefile
+++ b/Makefile
@@ -24,13 +24,17 @@
# If your /bin/sh is not bash, change the below definition so that make can
# find bash. Or you can hope your sh-like shell understands all scripts.
# I think so, but I have not tested it.
-# SHELL=/usr/bin/bash
+#SHELL := /usr/bin/bash
+
+# The currently running kernel version. This is used right below to
+# determine where the kernel sources can be found.
+KERNELVERSION := $(shell uname -r)
# The location of linux itself. This is used to find the kernel headers
# and other things.
-#LINUX=/usr/src/linux
-LINUX=/lib/modules/$(shell uname -r)/build
-LINUX_HEADERS=$(LINUX)/include
+#LINUX := /usr/src/linux
+LINUX := /lib/modules/$(KERNELVERSION)/build
+LINUX_HEADERS := $(LINUX)/include
# Determine whether we need to compile the kernel modules, or only the
# user-space utilities. By default, the kernel modules are compiled.
@@ -81,8 +85,9 @@ PREFIX := /usr/local
# This is the directory into which the modules will be installed.
# The magic invocation will return something like this:
# /lib/modules/2.2.15-ac9/misc
-# MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc
-MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`
+#MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc
+#MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`
+MODPREF := /lib/modules/$(KERNELVERSION)
# This is the directory where sensors.conf will be installed, if no other
# configuration file is found