Changeset 3375
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/Makefile
r3367 r3375 61 61 # The magic invocation will return something like this: 62 62 # /lib/modules/2.2.15-ac9/extra/misc 63 MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'`/extra/misc 63 MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'` 64 ifeq ($(BUILD_SYSTEM),i2c) 65 MODDIR := $(MODDIR)/extra/misc 66 else 67 MODDIR := $(MODDIR)/misc 68 endif 69 64 70 65 71 # This is the directory into which the header files will be installed. 66 72 # If you want to make sure your current kernel tree is not overwritten, 67 # the default should work. 73 # the default should work. This is ignored for the i2c build system. 68 74 LINUX_INCLUDE_DIR := /usr/local/include/linux 69 75 #LINUX_INCLUDE_DIR := $(LINUX_HEADERS) … … 74 80 #WARN := 1 75 81 76 .PHONY: all clean install patch77 78 82 ################################################## 79 83 # Below this, nothing should need to be changed. # 80 84 ################################################## 85 86 .PHONY: all clean install patch 81 87 82 88 ifeq ($(BUILD_SYSTEM),i2c) … … 90 96 ifeq ($(COMPILE_KERNEL),1) 91 97 $(MAKE) -C kernel KERNEL_LOCATION=$(LINUX) MODULE_DIR=$(MODDIR) \ 92 I2CKERNELDIR=(LINUX_ INCLUDE_DIR) install98 I2CKERNELDIR=(LINUX_HEADERS) I2CMODDIR=$(MODDIR) install 93 99 endif 94 100 -
i2c/trunk/README
r3314 r3375 22 22 diffs against any (relatively recent) kernel. On the website, there are 23 23 also some pre-made diffs available, usually against the latest 2.0, 24 2.2 and 2.3 kernels. [NOT YET IMPLEMENTED]24 2.2 and 2.3 kernels. 25 25 The second way is by making it directly, which will add some files to your 26 26 current kernel tree. As this is not always welcome, a third way is by making … … 31 31 separately. 32 32 Please read INSTALL for detailed information. 33 34 You can reach the developers of this package at their mailing list, at 35 linux-i2c@pelican.tk.uni-linz.ac.at. -
i2c/trunk/kernel/Makefile
r3327 r3375 6 6 i2c-elektor.h i2c-pcf8584.h 7 7 I2CKERNELDIR := /usr/include/linux 8 I2CMODDIR := /lib/modules/$(CURRENT)/misc 8 9 9 10 ################################################# … … 12 13 13 14 MOD_SUB_DIRS = 14 MX_OBJS = i2c-core.o i2c-algo-bit.o i2c- dev.o i2c-algo-pcf.o15 MX_OBJS = i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o 15 16 16 M_OBJS = i2c- elektor.o i2c-elv.o i2c-philips-par.o i2c-velleman.o17 M_OBJS = i2c-dev i2c-philips-par i2c-elv i2c-velleman i2c-elektor 17 18 EXTRA_CFLAGS = -Wno-unused 18 19 … … 22 23 23 24 install: 24 su -c "cp -v $(M_OBJS) $(MX_OBJS) /lib/modules/$(CURRENT)/misc"25 su -c "cp -v $(M_OBJS) $(MX_OBJS) $(I2CMODDIR)" 25 26 su -c "cp -v $(I2CINCLUDES) $(I2CKERNELDIR)" 26 27
