Changeset 3375

Show
Ignore:
Timestamp:
09/16/99 20:54:18 (14 years ago)
Author:
frodo
Message:

A new INSTALL file. Please read it and offer comments. I think it

is fairly clear and hopefully complete. If so, a slightly modified
version will be included in the lm_sensors package too.

Location:
i2c/trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/Makefile

    r3367 r3375  
    6161# The magic invocation will return something like this: 
    6262#   /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 
     63MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'` 
     64ifeq ($(BUILD_SYSTEM),i2c) 
     65MODDIR := $(MODDIR)/extra/misc 
     66else 
     67MODDIR := $(MODDIR)/misc 
     68endif 
     69 
    6470 
    6571# This is the directory into which the header files will be installed. 
    6672# 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. 
    6874LINUX_INCLUDE_DIR := /usr/local/include/linux 
    6975#LINUX_INCLUDE_DIR := $(LINUX_HEADERS) 
     
    7480#WARN := 1 
    7581 
    76 .PHONY: all clean install patch 
    77  
    7882################################################## 
    7983# Below this, nothing should need to be changed. # 
    8084################################################## 
     85 
     86.PHONY: all clean install patch 
    8187 
    8288ifeq ($(BUILD_SYSTEM),i2c) 
     
    9096ifeq ($(COMPILE_KERNEL),1) 
    9197        $(MAKE) -C kernel KERNEL_LOCATION=$(LINUX) MODULE_DIR=$(MODDIR) \ 
    92                 I2CKERNELDIR=(LINUX_INCLUDE_DIR) install 
     98                I2CKERNELDIR=(LINUX_HEADERS) I2CMODDIR=$(MODDIR) install 
    9399endif 
    94100 
  • i2c/trunk/README

    r3314 r3375  
    2222diffs against any (relatively recent) kernel. On the website, there are 
    2323also some pre-made diffs available, usually against the latest 2.0, 
    24 2.2 and 2.3 kernels. [NOT YET IMPLEMENTED] 
     242.2 and 2.3 kernels. 
    2525The second way is by making it directly, which will add some files to your  
    2626current kernel tree. As this is not always welcome, a third way is by making 
     
    3131separately. 
    3232Please read INSTALL for detailed information. 
     33 
     34You can reach the developers of this package at their mailing list, at 
     35linux-i2c@pelican.tk.uni-linz.ac.at. 
  • i2c/trunk/kernel/Makefile

    r3327 r3375  
    66               i2c-elektor.h i2c-pcf8584.h 
    77I2CKERNELDIR := /usr/include/linux 
     8I2CMODDIR := /lib/modules/$(CURRENT)/misc 
    89 
    910################################################# 
     
    1213 
    1314MOD_SUB_DIRS = 
    14 MX_OBJS       = i2c-core.o i2c-algo-bit.o i2c-dev.o i2c-algo-pcf.o 
     15MX_OBJS       = i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o 
    1516 
    16 M_OBJS      = i2c-elektor.o i2c-elv.o i2c-philips-par.o i2c-velleman.o 
     17M_OBJS      = i2c-dev i2c-philips-par i2c-elv i2c-velleman i2c-elektor 
    1718EXTRA_CFLAGS = -Wno-unused 
    1819 
     
    2223 
    2324install: 
    24         su -c "cp -v $(M_OBJS) $(MX_OBJS) /lib/modules/$(CURRENT)/misc" 
     25        su -c "cp -v $(M_OBJS) $(MX_OBJS) $(I2CMODDIR)" 
    2526        su -c "cp -v $(I2CINCLUDES) $(I2CKERNELDIR)" 
    2627