Changeset 3723
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/CHANGES
r3722 r3723 18 18 ----------------------------------------------------------------------------- 19 19 20 2.6.6 (2002 ????)20 2.6.6 (20021???) 21 21 i2c-algo-ibm_ocp.[ch], i2c-adap-ibm_ocp.c: Rename i2c_iic_[add,del]_bus to 22 22 i2c_ocp... to avoid duplicate with i2c-algo-ite in kernel … … 26 26 i2c-proc.h: Add SENSORS_INSMOD_8; add naming for new dummy adapters 27 27 mkpatch: Fix export-objs 28 Makefile: Take kernel source location from /lib/modules/x.x.x/build 28 29 29 30 2.6.5 (20020915) -
i2c/trunk/INSTALL
r3528 r3723 80 80 out by itself their settings, but it is possible to overrule them. A list 81 81 is found below. Most important are the variables that determine where 82 your kernel is located (LINUX=/usr/src/linux) and where you want to 83 install your modules (MODDIR=/lib/modules/KERNELVERSION/misc) and 84 header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see 85 that the installation locations are choosen in such a way that they 86 are separate from the true kernel. 82 your kernel is located (LINUX=/lib/modules/KERNELVERSION/build, usually 83 links to /usr/src/linux or something similar) and where you want to 84 install your modules (MODDIR=/lib/modules/KERNELVERSION) and header files 85 (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see that the 86 installation locations are choosen in such a way that they are separate 87 from the true kernel. 87 88 88 89 Compilation is done by `make all'; `make install' installs the package. … … 116 117 ============================================================== 117 118 118 BUILD_SYSTEM (both) default: lm_sensors119 BUILD_SYSTEM (both) (default: lm_sensors) 119 120 The build system which is used. lm_sensors corresponds with compilation 120 121 option 1; i2c with compilatin option 2. … … 123 124 other shell. There have been conflicting reports on whether this is 124 125 needed. 125 LINUX (both) default: /usr/src/linux 126 KERNELVERSION (both) 127 The version of the currently running kernel. 128 LINUX (both) (default: /lib/modules/$(KERNELVERSION)/build) 126 129 The location of your kernel tree. 127 COMPILE_KERNEL (both) default: 1130 COMPILE_KERNEL (both) (default: 1) 128 131 Determine whether you want to consider the kernel modules for compilation 129 132 at all. By default, compilation option 1 will only compile and install … … 144 147 invocation should determine this automatically, so you should not 145 148 have to bother with this. 146 MODDIR (both) default: /lib/modules/KERNELVERSION/misc)149 MODDIR (both) (default: /lib/modules/$(KERNELVERSION)) 147 150 The location where the kernel modules will be installed. 148 LINUX_INCLUDE_DIR (compilation option 1 only) default: /usr/local/include/linux149 The location where the i2c header files will be installed 150 WARN (compilation option 1 only) default: 0151 LINUX_INCLUDE_DIR (compilation option 1 only) (default: /usr/local/include/linux) 152 The location where the i2c header files will be installed. 153 WARN (compilation option 1 only) (default: 0) 151 154 Generate additional compilation warnings; mainly interesting for 152 155 developers. -
i2c/trunk/Makefile
r3626 r3723 24 24 # kernel tree for this (and seems to give minor troubles in some cases). 25 25 # Make your choice. 26 BUILD_SYSTEM =lm_sensors27 #BUILD_SYSTEM =i2c26 BUILD_SYSTEM := lm_sensors 27 #BUILD_SYSTEM := i2c 28 28 29 29 # If your /bin/sh is not bash, change the below definition so that make can 30 30 # find bash. Or you can hope your sh-like shell understands all scripts. 31 31 # I think so, but I have not tested it. 32 # SHELL=/usr/bin/bash 32 #SHELL := /usr/bin/bash 33 34 # The currently running kernel version. This is used right below to 35 # determine where the kernel sources can be found. 36 KERNELVERSION := $(shell uname -r) 33 37 34 38 # The location of linux itself. This is used to find the kernel headers 35 39 # and other things. 36 LINUX=/usr/src/linux 37 LINUX_HEADERS=$(LINUX)/include 40 #LINUX := /usr/src/linux 41 LINUX := /lib/modules/$(KERNELVERSION)/build 42 LINUX_HEADERS := $(LINUX)/include 38 43 39 44 # Determine whether we need to compile the kernel modules, or only the … … 60 65 # The magic invocation will return something like this: 61 66 # /lib/modules/2.2.15-ac9/misc 62 # MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 63 MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 67 #MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 68 #MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 69 MODPREF := /lib/modules/$(KERNELVERSION) 64 70 65 71 # This is the directory into which the header files will be installed.
