patch-2.2.18 linux/drivers/scsi/Makefile

Next file: linux/drivers/scsi/README.ibmmca
Previous file: linux/drivers/scsi/Config.in
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/scsi/Makefile linux/drivers/scsi/Makefile
@@ -5,6 +5,10 @@
 # unless it's something special (ie not a .c file).
 #
 
+SUB_DIRS     := 
+MOD_SUB_DIRS := $(SUB_DIRS)
+ALL_SUB_DIRS := $(SUB_DIRS)
+
 L_TARGET := scsi.a
 L_OBJS   := 
 M_OBJS   := 
@@ -273,6 +277,7 @@
   endif
 endif
 
+
 ifeq ($(CONFIG_SCSI_QLOGIC_FAS),y)
 L_OBJS += qlogicfas.o
 else
@@ -322,6 +327,14 @@
   endif
 endif
 
+ifeq ($(CONFIG_SCSI_CPQFCTS),y)
+L_OBJS += cpqfc.o 
+else
+  ifeq ($(CONFIG_SCSI_CPQFCTS),m)   
+  M_OBJS += cpqfc.o 
+  endif
+endif
+
 ifeq ($(CONFIG_SCSI_AHA152X),y)
 L_OBJS += aha152x.o
 else
@@ -682,6 +695,28 @@
 
 sim710.o : sim710_d.h
 
+# if we have a triggerable HBA (extra circuit addition for
+# TTL level output on GPIO line), build in the trigger file
+
+#CPQTRIGGER_FILE = cpqfcTStrigger.c
+
+CPQTRIG = cpqfcTStrigger.o
+
+cpqfcTStrigger.o: cpqfcTStrigger.c
+
+cpqfcTSinit.o: cpqfcTSinit.c cpqfcTSstructs.h cpqfcTSchip.h cpqfcTSioctl.h
+
+cpqfcTScontrol.o: cpqfcTScontrol.c cpqfcTSstructs.h cpqfcTSchip.h 
+
+cpqfcTSi2c.o: cpqfcTSi2c.c cpqfcTSchip.h 
+
+cpqfcTSworker.o: cpqfcTSworker.c cpqfcTSchip.h cpqfcTSstructs.h cpqfcTSioctl.h
+
+cpqfc.o: cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o cpqfcTSworker.o $(CPQTRIG)
+	$(LD) -r -o cpqfc.o cpqfcTSinit.o cpqfcTScontrol.o \
+	cpqfcTSi2c.o cpqfcTSworker.o $(CPQTRIG)
+
+
 initio.o: ini9100u.c i91uscsi.c
 	$(CC) $(CFLAGS) -c ini9100u.c -o ini9100u.o
 	$(CC) $(CFLAGS) -c i91uscsi.c -o i91uscsi.o
@@ -705,3 +740,4 @@
 
 sd_mod.o: sd.o sd_ioctl.o
 	$(LD) $(LD_RFLAG) -r -o $@ sd.o sd_ioctl.o
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)