Changeset 3626
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/CHANGES
r3620 r3626 18 18 ----------------------------------------------------------------------------- 19 19 20 2.6.3 (200203??) 20 2.6.4 (2002????) 21 Makefiles: For 2.4+ kernels, modules now install in 22 kernel/drivers/i2c , not misc/ , and 23 removes old versions in misc/ . 24 25 2.6.3 (20020322) 21 26 TODO: Many updates 22 27 Config.in: i2c-proc requires sysctl -
i2c/trunk/Makefile
r3545 r3626 60 60 # The magic invocation will return something like this: 61 61 # /lib/modules/2.2.15-ac9/misc 62 MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/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'"'` 63 64 64 65 # This is the directory into which the header files will be installed. -
i2c/trunk/kernel/Module.mk
r3619 r3626 85 85 all :: all-kernel 86 86 87 # 88 # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory 89 # layout, so we install in kernel/drivers/i2c/ and remove old versions in misc/ 90 # Otherwise we install in misc/ as before. 91 # 87 92 install-kernel: all-kernel 88 93 if [ -n "$(KERNELTARGETS)" ] ; then \ 89 $(MKDIR) $(DESTDIR)$(MODDIR) ; \ 90 $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) ; \ 94 if [ -d "$(DESTDIR)$(MODPREF)/kernel" ] ; then \ 95 $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \ 96 $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \ 97 for i in $(KERNELTARGETS) ; do \ 98 $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` ; \ 99 done \ 100 else \ 101 $(MKDIR) $(DESTDIR)$(MODPREF)/misc ; \ 102 $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/misc ; \ 103 fi \ 91 104 fi 92 105 if [ -n "$(KERNELINCLUDES)" ] ; then \
