diff options
Diffstat (limited to 'sys-apps/i2c/files/i2c-2.9.2-module-path.patch')
-rw-r--r-- | sys-apps/i2c/files/i2c-2.9.2-module-path.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/i2c/files/i2c-2.9.2-module-path.patch b/sys-apps/i2c/files/i2c-2.9.2-module-path.patch new file mode 100644 index 000000000000..3554e1cd910e --- /dev/null +++ b/sys-apps/i2c/files/i2c-2.9.2-module-path.patch @@ -0,0 +1,27 @@ +diff -urp i2c-2.9.2/kernel/Module.mk i2c-2.9.2-module-path/kernel/Module.mk +--- i2c-2.9.2/kernel/Module.mk 2005-09-06 21:38:20.000000000 +0200 ++++ i2c-2.9.2-module-path/kernel/Module.mk 2005-09-06 22:26:07.000000000 +0200 +@@ -98,18 +98,18 @@ all :: all-kernel + + # + # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory +-# layout, so we install in kernel/drivers/i2c/ and remove old versions in misc/ ++# layout, so we install in drivers/i2c/ and remove old versions in misc/ + # Otherwise we install in misc/ as before. + # + install-kernel: all-kernel + if [ -n "$(KERNELTARGETS)" ] ; then \ +- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \ +- $(INSTALL) -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \ ++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c ; \ ++ $(INSTALL) -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c ; \ + for i in $(KERNELTARGETS) ; do \ +- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz ; \ ++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz ; \ + done ; \ + for i in i2c-elektor.o i2c-pcf-epp.o ; do \ +- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz ; \ ++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i` $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz ; \ + done ; \ + $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \ + fi |