Messages in this thread Patch in this message | | | Date | Tue, 13 Jan 1998 02:40:14 +0200 | From | Itai Nahshon <> | Subject | Re: 2.1.78 - ide cannot be used as a module. |
| |
Itai Nahshon wrote: > > If I have CONFIG_PROC_FS=y and CONFIG_BLK_DEV_IDE=m I cannot use ide. > > The reason is that ide-proc.o tries to compile as a module > but it has mutual dependencies with ide.o. Even if it did not, it does > not include <linux/module.h>. > > Itai > -- > Itai Nahshon nahshon@actcom.co.il > Also nahshon@vnet.ibm.com
(Thanks Henrik) This patch is doing exactly what I want (simple Makefile change):
--- linux-2.1.78-orig/drivers/block/Makefile Tue Jan 6 22:53:01 1998 +++ linux-2.1.78/drivers/block/Makefile Mon Jan 12 23:55:21 1998 @@ -90,11 +90,12 @@ L_OBJS += ide-probe.o else ifeq ($(CONFIG_BLK_DEV_IDE),m) - MX_OBJS += ide.o + MIX_OBJS += ide.o ifeq ($(CONFIG_PROC_FS),y) M_OBJS += ide-proc.o endif - M_OBJS += ide-probe.o + M_OBJS += ide-mod.o + MX_OBJS += ide-probe.o endif endif @@ -118,7 +119,6 @@ L_OBJS += ps2esdi.o endif - ifeq ($(CONFIG_BLK_DEV_DTC2278),y) L_OBJS += dtc2278.o endif @@ -250,3 +250,6 @@ endif include $(TOPDIR)/Rules.make + +ide-mod.o: ide.o ide-proc.o + $(LD) $(LD_RFLAG) -r -o $@ ide.o ide-proc.o -- Itai Nahshon nahshon@actcom.co.il Also nahshon@vnet.ibm.com
| |