(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