Changeset 3383
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/INSTALL
r3380 r3383 111 111 LINUX (both) default: /usr/src/linux 112 112 The location of your kernel tree. 113 COMPILE_KERNEL (both) 114 This determines whether only the user-space utilities are needed (0) 115 or also the kernel modules (1). This is usually determined by checking 116 whether the kernel was already patched to include the kernel modules, 117 but that is not really foolprool. 118 At the moment of writing, there are no user-space utilities yet, so 119 setting this to 0 will make for a very fast compilation :-) 113 COMPILE_KERNEL (both) default: 1 114 Determine whether you want to consider the kernel modules for compilation 115 at all. By default, compilation option 1 will only compile and install 116 those modules which are not built into the kernel; compilation option 2 117 will compile and install all of them. 118 If some modules are built into your kernel, and this package is much 119 newer, you may find you can not insert the newly compiled modules. 120 Sorry. 121 You may want to set this to 0 if you have just patched and compiled 122 your kernel using the same version of this package, and just want to 123 compile the user-space tools. 120 124 SMP (compilation option 1 only) 121 125 This must be set to 1 for a SMP kernel. The magic invocation should -
i2c/trunk/Makefile
r3375 r3383 38 38 39 39 # Determine whether we need to compile the kernel modules, or only the 40 # user-space utilities. 41 COMPILE_KERNEL := $(shell if test -d $(LINUX)/drivers/i2c ; \ 42 then echo 0; else echo 1; fi) 40 # user-space utilities. By default, the kernel modules are compiled. 43 41 #COMPILE_KERNEL := 0 44 #COMPILE_KERNEL := 1 42 COMPILE_KERNEL := 1 43 45 44 46 45 # Uncomment the third line on SMP systems if the magic invocation fails. It -
i2c/trunk/kernel/Module.mk
r3327 r3383 23 23 # Regrettably, even 'simply expanded variables' will not put their currently 24 24 # defined value verbatim into the command-list of rules... 25 KERNELTARGETS := $(MODULE_DIR)/i2c-core.o \ 26 $(MODULE_DIR)/i2c-dev.o \ 27 $(MODULE_DIR)/i2c-algo-bit.o \ 28 $(MODULE_DIR)/i2c-algo-pcf.o \ 29 $(MODULE_DIR)/i2c-elv.o \ 30 $(MODULE_DIR)/i2c-philips-par.o \ 31 $(MODULE_DIR)/i2c-velleman.o \ 32 $(MODULE_DIR)/i2c-elektor.o 25 # We will only include those modules which are not already built into this 26 # kernel. 27 KERNELTARGETS := 28 KERNELINCLUDES := 29 ifneq ($(shell if grep -q '^CONFIG_I2C=y' $(LINUX)/.config; then echo 1; fi),1) 30 KERNELTARGETS += $(MODULE_DIR)/i2c-core.o 31 KERNELINCLUDES += $(MODULE_DIR)/i2c.h 32 endif 33 ifneq ($(shell if grep -q '^CONFIG_I2C_CHARDEV=y' $(LINUX)/.config; then echo 1; fi),1) 34 KERNELTARGETS += $(MODULE_DIR)/i2c-dev.o 35 KERNELINCLUDES += $(MODULE_DIR)/i2c-dev.h 36 endif 37 ifneq ($(shell if grep -q '^CONFIG_I2C_ALGOBIT=y' $(LINUX)/.config; then echo 1; fi),1) 38 KERNELTARGETS += $(MODULE_DIR)/i2c-algo-bit.o 39 KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-bit.h 40 endif 41 ifneq ($(shell if grep -q '^CONFIG_I2C_PHILIPSPAR=y' $(LINUX)/.config; then echo 1; fi),1) 42 KERNELTARGETS += $(MODULE_DIR)/i2c-philips-par.o 43 endif 44 ifneq ($(shell if grep -q '^CONFIG_I2C_ELV=y' $(LINUX)/.config; then echo 1; fi),1) 45 KERNELTARGETS += $(MODULE_DIR)/i2c-elv.o 46 endif 47 ifneq ($(shell if grep -q '^CONFIG_I2C_VELLEMAN=y' $(LINUX)/.config; then echo 1; fi),1) 48 KERNELTARGETS += $(MODULE_DIR)/i2c-velleman.o 49 endif 50 ifneq ($(shell if grep -q '^CONFIG_I2C_ALGOPCF=y' $(LINUX)/.config; then echo 1; fi),1) 51 KERNELTARGETS += $(MODULE_DIR)/i2c-algo-pcf.o 52 KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-pcf.h 53 endif 54 ifneq ($(shell if grep -q '^CONFIG_I2C_ELEKTOR=y' $(LINUX)/.config; then echo 1; fi),1) 55 KERNELTARGETS += $(MODULE_DIR)/i2c-elektor.o 56 KERNELINCLUDES += $(MODULE_DIR)/i2c-elektor.h $(MODULE_DIR)/i2c-pcf8584.h 57 endif 33 58 34 KERNELINCLUDES := $(MODULE_DIR)/i2c.h $(MODULE_DIR)/i2c-dev.h \35 $(MODULE_DIR)/i2c-algo-bit.h $(MODULE_DIR)/i2c-algo-pcf.h \36 $(MODULE_DIR)/i2c-elektor.h $(MODULE_DIR)/i2c-pcf8584.h37 38 59 # Include all dependency files 39 60 INCLUDEFILES += $(KERNELTARGETS:.o=.d)
