Changeset 1601
- Timestamp:
- 11/14/02 14:23:07 (6 years ago)
- Files:
-
- lm-sensors/trunk/INSTALL (modified) (5 diffs)
- lm-sensors/trunk/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/INSTALL
r1439 r1601 3 3 INSTALLATION INSTRUCTIONS 4 4 5 REQUIRES kernel 2.4.13 or later, or i2c-2.6.1or later!!!5 REQUIRES i2c-2.6.6 or later!!! 6 6 7 7 FOR 2.5 KERNELS, we do not recommend attempting to compile this package. … … 156 156 out by itself their settings, but it is possible to overrule them. A list 157 157 is found below. Most important are the variables that determine where 158 your kernel is located (LINUX=/usr/src/linux), where the i2c header files 158 your kernel is located (LINUX=/lib/modules/KERNELVERSION/build, usually 159 links to /usr/src/linux or something similar), where the i2c header files 159 160 are (I2C_HEADERS=/usr/local/include) and where you want to install 160 your modules (MODDIR=/lib/modules/KERNELVERSION /misc) and161 header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see162 that the installation locations are choosen in such a way that they 163 are separatefrom the true kernel.161 your modules (MODDIR=/lib/modules/KERNELVERSION) and header files 162 (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see that the 163 installation locations are choosen in such a way that they are separate 164 from the true kernel. 164 165 165 166 Compilation is done by `make all'; `make install' installs the package. … … 178 179 other shell. There have been conflicting reports on whether this is 179 180 needed. 180 LINUX default: /usr/src/linux 181 KERNELVERSION 182 The version of the currently running kernel. 183 LINUX (default: /lib/modules/$(KERNELVERSION)/build) 181 184 The location of your kernel tree. 182 185 COMPILE_KERNEL … … 190 193 your kernel using the same version of this package, and just want to 191 194 compile the user-space tools. 192 I2C_HEADERS default: /usr/local/include195 I2C_HEADERS (default: /usr/local/include) 193 196 This lists where the i2c headers are found. If you used compilation 194 197 option 1 for the i2c package, the default will be right. If you used … … 201 204 determine this automatically, so you should not have to bother with 202 205 this. 203 WARN default: 0204 Generate additional compilation warnings; mainly interesting for205 developers.206 206 MODVER 207 207 This must be set to 1 if CONFIG_MODVERSIONS is defined. The magic 208 208 invocation should determine this automatically, so you should not 209 209 have to bother with this. 210 DEBUG default: 0 210 WARN (default: 0) 211 Generate additional compilation warnings; mainly interesting for 212 developers. 213 DEBUG (default: 0) 211 214 Some drivers will issue more debug information if you set this to 212 215 1. Don't do it, unless you are a developer or are instructed to do 213 216 so by the lm_sensors team. 214 PREFIX default: /usr/local215 Prefix for almost all installation directories 216 MOD DIR default: /lib/modules/KERNELVERSION/misc)217 The location where the kernel modules will be installed. 218 ETCDIR default: /etc219 Installation location of the sensors.conf configuration file 220 LIBDIR default: $(PREFIX)/lib217 PREFIX (default: /usr/local) 218 Prefix for almost all installation directories. 219 MODPREF (default: /lib/modules/$(KERNELVERSION)) 220 The location where the kernel modules will be installed. 221 ETCDIR (default: /etc) 222 Installation location of the sensors.conf configuration file. 223 LIBDIR (default: $(PREFIX)/lib) 221 224 Installation location of all static and shared libraries. 222 BINDIR default: $(PREFIX)/bin223 Installation directory of programs useful for users 224 SBINDIR default: $(PREFIX)/sbin225 Installation directory of system administrator-only programs 226 INCLUDEDIR default: $(PREFIX)/include227 Base installation directory for include files (see next two vars) 228 SYSINCLUDEDIR default: $(INCLUDEDIR)/linux229 Installation directory for system include files 230 LIBINCLUDEDIR default: $(INCLUDEDIR)/sensors225 BINDIR (default: $(PREFIX)/bin) 226 Installation directory of programs useful for users. 227 SBINDIR (default: $(PREFIX)/sbin) 228 Installation directory of system administrator-only programs. 229 INCLUDEDIR (default: $(PREFIX)/include) 230 Base installation directory for include files (see next two vars). 231 SYSINCLUDEDIR (default: $(INCLUDEDIR)/linux) 232 Installation directory for system include files. 233 LIBINCLUDEDIR (default: $(INCLUDEDIR)/sensors) 231 234 Installation directory for libsensors include files. 232 MANDIR default: $(PREFIX)/man233 Base installation directory for manual pages 234 MANOWN default: root235 Owner of manual pages 236 MANGRP default: root237 Group of manual pages 235 MANDIR (default: $(PREFIX)/man) 236 Base installation directory for manual pages. 237 MANOWN (default: root) 238 Owner of manual pages. 239 MANGRP (default: root) 240 Group of manual pages. 238 241 239 242 lm-sensors/trunk/Makefile
r1548 r1601 25 25 # find bash. Or you can hope your sh-like shell understands all scripts. 26 26 # 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. 31 KERNELVERSION := $(shell uname -r) 28 32 29 33 # The location of linux itself. This is used to find the kernel headers 30 34 # and other things. 31 #LINUX =/usr/src/linux32 LINUX =/lib/modules/$(shell uname -r)/build33 LINUX_HEADERS =$(LINUX)/include35 #LINUX := /usr/src/linux 36 LINUX := /lib/modules/$(KERNELVERSION)/build 37 LINUX_HEADERS := $(LINUX)/include 34 38 35 39 # Determine whether we need to compile the kernel modules, or only the … … 82 86 # The magic invocation will return something like this: 83 87 # /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'"'` 90 MODPREF := /lib/modules/$(KERNELVERSION) 86 91 87 92 # This is the directory where sensors.conf will be installed, if no other
