patch-1.3.50 linux/drivers/block/Makefile

Next file: linux/drivers/block/floppy.c
Previous file: linux/drivers/block/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.49/linux/drivers/block/Makefile linux/drivers/block/Makefile
@@ -16,7 +16,7 @@
 
 
 L_TARGET := block.a
-L_OBJS   := ll_rw_blk.o rd.o genhd.o 
+L_OBJS   := ll_rw_blk.o genhd.o 
 M_OBJS   :=
 MOD_LIST_NAME := BLOCK_MODULES
 
@@ -26,6 +26,10 @@
   ifeq ($(CONFIG_BLK_DEV_FD),m)
   M_OBJS += floppy.o
   endif
+endif
+
+ifeq ($(CONFIG_BLK_DEV_RAM),y)
+L_OBJS += rd.o
 endif
 
 ifeq ($(CONFIG_BLK_DEV_HD),y)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this