| 106 | | This will compile and install the complete lm_sensors package. Though |
| 107 | | nothing is written to your kernel tree, a proper tree is still needed |
| 108 | | for this. See earlier for what a proper kernel tree is. |
| 109 | | |
| 110 | | At the top of the Makefile are a couple of configuration variables that |
| 111 | | you may want to change. As far as possible, the Makefile tries to figure |
| 112 | | out by itself their settings, but it is possible to overrule them. A list |
| 113 | | is found below. Most important are the variables that determine where |
| 114 | | your kernel is located (LINUX=/lib/modules/KERNELVERSION/build, usually |
| 115 | | links to /usr/src/linux or something similar), where the i2c header files |
| 116 | | are (I2C_HEADERS=/usr/local/include) and where you want to install |
| 117 | | your modules (MODDIR=/lib/modules/KERNELVERSION) and header files |
| 118 | | (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see that the |
| 119 | | installation locations are choosen in such a way that they are separate |
| 120 | | from the true kernel. |
| | 106 | This will compile and install the complete lm_sensors package. At the |
| | 107 | top of the Makefile are a couple of configuration variables that you may |
| | 108 | want to change. A list is found below. |
| 137 | | KERNELVERSION |
| 138 | | The version of the currently running kernel. |
| 139 | | LINUX (default: /lib/modules/$(KERNELVERSION)/build) |
| 140 | | The location of your kernel tree. |
| 141 | | I2C_HEADERS (default: /usr/local/include) |
| 142 | | This lists where the i2c headers are found. If you used compilation |
| 143 | | option 1 for the i2c package, the default will be right. If you used |
| 144 | | compilation options 2 or 3, it will not, and may actually cause |
| 145 | | problems if you have the left-overs of a previous installation. |
| 146 | | If you have weird compilation problems, try to change this to |
| 147 | | $(LINUX_HEADERS). |
| 148 | | SMP |
| 149 | | This must be set to 1 for a SMP kernel. The magic invocation should |
| 150 | | determine this automatically, so you should not have to bother with |
| 151 | | this. |
| 152 | | MODVER |
| 153 | | This must be set to 1 if CONFIG_MODVERSIONS is defined. The magic |
| 154 | | invocation should determine this automatically, so you should not |
| 155 | | have to bother with this. |