[SCSI] don't build scsi_dma_{map,unmap} for !HAS_DMA
[linux-2.6.git] / drivers / scsi / Makefile
index cbc2e2b..0f86895 100644 (file)
@@ -148,9 +148,9 @@ obj-$(CONFIG_SCSI_DEBUG)    += scsi_debug.o
 obj-$(CONFIG_SCSI_WAIT_SCAN)   += scsi_wait_scan.o
 
 scsi_mod-y                     += scsi.o hosts.o scsi_ioctl.o constants.o \
-                                  scsicam.o scsi_error.o scsi_lib.o \
-                                  scsi_scan.o scsi_sysfs.o \
-                                  scsi_devinfo.o
+                                  scsicam.o scsi_error.o scsi_lib.o
+scsi_mod-$(CONFIG_SCSI_DMA)    += scsi_lib_dma.o
+scsi_mod-y                     += scsi_scan.o scsi_sysfs.o scsi_devinfo.o
 scsi_mod-$(CONFIG_SCSI_NETLINK)        += scsi_netlink.o
 scsi_mod-$(CONFIG_SYSCTL)      += scsi_sysctl.o
 scsi_mod-$(CONFIG_SCSI_PROC_FS)        += scsi_proc.o