1 |
1275 |
phoenix |
#
|
2 |
|
|
# Makefile for linux/drivers/scsi
|
3 |
|
|
#
|
4 |
|
|
# 30 May 2000, Christoph Hellwig
|
5 |
|
|
# Rewritten to use lists instead of if-statements.
|
6 |
|
|
#
|
7 |
|
|
# 20 Sep 2000, Torben Mathiasen
|
8 |
|
|
# Changed link order to reflect new scsi initialization.
|
9 |
|
|
#
|
10 |
|
|
# *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
|
11 |
|
|
# The link order must be, SCSI Core, SCSI HBA drivers, and
|
12 |
|
|
# lastly SCSI peripheral drivers (disk/tape/cdrom/etc.) to
|
13 |
|
|
# satisfy certain initialization assumptions in the SCSI layer.
|
14 |
|
|
# *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
CFLAGS_aha152x.o = -DAHA152X_STAT -DAUTOCONF
|
18 |
|
|
CFLAGS_gdth.o = # -DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
|
19 |
|
|
CFLAGS_seagate.o = -DARBITRATE -DPARITY -DSEAGATE_USE_ASM
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
O_TARGET := scsidrv.o
|
23 |
|
|
|
24 |
|
|
export-objs := scsi_syms.o 53c700.o
|
25 |
|
|
mod-subdirs := pcmcia ../acorn/scsi
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
subdir-$(CONFIG_SCSI_AACRAID) += aacraid
|
29 |
|
|
subdir-$(CONFIG_SCSI_AIC7XXX) += aic7xxx
|
30 |
|
|
subdir-$(CONFIG_SCSI_AIC79XX) += aic7xxx
|
31 |
|
|
subdir-$(CONFIG_PCMCIA) += pcmcia
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
obj-$(CONFIG_SCSI) += scsi_mod.o
|
35 |
|
|
|
36 |
|
|
obj-$(CONFIG_SCSI_AMIGA7XX) += amiga7xx.o 53c7xx.o
|
37 |
|
|
obj-$(CONFIG_A3000_SCSI) += a3000.o wd33c93.o
|
38 |
|
|
obj-$(CONFIG_A2091_SCSI) += a2091.o wd33c93.o
|
39 |
|
|
obj-$(CONFIG_GVP11_SCSI) += gvp11.o wd33c93.o
|
40 |
|
|
obj-$(CONFIG_MVME147_SCSI) += mvme147.o wd33c93.o
|
41 |
|
|
obj-$(CONFIG_SGIWD93_SCSI) += sgiwd93.o wd33c93.o
|
42 |
|
|
obj-$(CONFIG_CYBERSTORM_SCSI) += NCR53C9x.o cyberstorm.o
|
43 |
|
|
obj-$(CONFIG_CYBERSTORMII_SCSI) += NCR53C9x.o cyberstormII.o
|
44 |
|
|
obj-$(CONFIG_BLZ2060_SCSI) += NCR53C9x.o blz2060.o
|
45 |
|
|
obj-$(CONFIG_BLZ1230_SCSI) += NCR53C9x.o blz1230.o
|
46 |
|
|
obj-$(CONFIG_FASTLANE_SCSI) += NCR53C9x.o fastlane.o
|
47 |
|
|
obj-$(CONFIG_OKTAGON_SCSI) += NCR53C9x.o oktagon_esp.o oktagon_io.o
|
48 |
|
|
obj-$(CONFIG_ATARI_SCSI) += atari_scsi.o
|
49 |
|
|
obj-$(CONFIG_MAC_SCSI) += mac_scsi.o
|
50 |
|
|
obj-$(CONFIG_SCSI_MAC_ESP) += mac_esp.o NCR53C9x.o
|
51 |
|
|
obj-$(CONFIG_SUN3_SCSI) += sun3_scsi.o sun3_scsi_vme.o
|
52 |
|
|
obj-$(CONFIG_MVME16x_SCSI) += mvme16x.o 53c7xx.o
|
53 |
|
|
obj-$(CONFIG_BVME6000_SCSI) += bvme6000.o 53c7xx.o
|
54 |
|
|
obj-$(CONFIG_SCSI_SIM710) += sim710.o
|
55 |
|
|
obj-$(CONFIG_SCSI_ADVANSYS) += advansys.o
|
56 |
|
|
obj-$(CONFIG_SCSI_PCI2000) += pci2000.o
|
57 |
|
|
obj-$(CONFIG_SCSI_PCI2220I) += pci2220i.o
|
58 |
|
|
obj-$(CONFIG_SCSI_PSI240I) += psi240i.o
|
59 |
|
|
obj-$(CONFIG_SCSI_BUSLOGIC) += BusLogic.o
|
60 |
|
|
obj-$(CONFIG_SCSI_DPT_I2O) += dpt_i2o.o
|
61 |
|
|
obj-$(CONFIG_SCSI_U14_34F) += u14-34f.o
|
62 |
|
|
obj-$(CONFIG_SCSI_ULTRASTOR) += ultrastor.o
|
63 |
|
|
obj-$(CONFIG_SCSI_AHA152X) += aha152x.o
|
64 |
|
|
obj-$(CONFIG_SCSI_AHA1542) += aha1542.o
|
65 |
|
|
obj-$(CONFIG_SCSI_AHA1740) += aha1740.o
|
66 |
|
|
ifeq ($(CONFIG_SCSI_AACRAID),y)
|
67 |
|
|
obj-$(CONFIG_SCSI_AACRAID) += aacraid/aacraid.o
|
68 |
|
|
endif
|
69 |
|
|
ifeq ($(CONFIG_SCSI_AIC7XXX),y)
|
70 |
|
|
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx/aic7xxx.o
|
71 |
|
|
endif
|
72 |
|
|
ifeq ($(CONFIG_SCSI_AIC79XX),y)
|
73 |
|
|
obj-$(CONFIG_SCSI_AIC79XX) += aic7xxx/aic79xx.o
|
74 |
|
|
endif
|
75 |
|
|
obj-$(CONFIG_SCSI_AIC7XXX_OLD) += aic7xxx_old.o
|
76 |
|
|
obj-$(CONFIG_SCSI_IPS) += ips.o
|
77 |
|
|
obj-$(CONFIG_SCSI_FD_MCS) += fd_mcs.o
|
78 |
|
|
obj-$(CONFIG_SCSI_FUTURE_DOMAIN)+= fdomain.o
|
79 |
|
|
obj-$(CONFIG_SCSI_IN2000) += in2000.o
|
80 |
|
|
obj-$(CONFIG_SCSI_GENERIC_NCR5380) += g_NCR5380.o
|
81 |
|
|
obj-$(CONFIG_SCSI_NCR53C406A) += NCR53c406a.o
|
82 |
|
|
obj-$(CONFIG_SCSI_NCR_D700) += NCR_D700.o 53c700.o
|
83 |
|
|
obj-$(CONFIG_SCSI_SYM53C416) += sym53c416.o
|
84 |
|
|
obj-$(CONFIG_SCSI_QLOGIC_FAS) += qlogicfas.o
|
85 |
|
|
obj-$(CONFIG_SCSI_QLOGIC_ISP) += qlogicisp.o
|
86 |
|
|
obj-$(CONFIG_SCSI_QLOGIC_FC) += qlogicfc.o
|
87 |
|
|
obj-$(CONFIG_SCSI_QLOGIC_1280) += qla1280.o
|
88 |
|
|
obj-$(CONFIG_SCSI_PAS16) += pas16.o
|
89 |
|
|
obj-$(CONFIG_SCSI_SEAGATE) += seagate.o
|
90 |
|
|
obj-$(CONFIG_SCSI_FD_8xx) += seagate.o
|
91 |
|
|
obj-$(CONFIG_SCSI_T128) += t128.o
|
92 |
|
|
obj-$(CONFIG_SCSI_DMX3191D) += dmx3191d.o
|
93 |
|
|
obj-$(CONFIG_SCSI_DTC3280) += dtc.o
|
94 |
|
|
obj-$(CONFIG_SCSI_NCR53C7xx) += 53c7,8xx.o
|
95 |
|
|
subdir-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2
|
96 |
|
|
ifeq ($(CONFIG_SCSI_SYM53C8XX_2),y)
|
97 |
|
|
obj-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2/sym53c8xx_2.o
|
98 |
|
|
endif
|
99 |
|
|
obj-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o
|
100 |
|
|
obj-$(CONFIG_SCSI_NCR53C8XX) += ncr53c8xx.o
|
101 |
|
|
obj-$(CONFIG_SCSI_EATA_DMA) += eata_dma.o
|
102 |
|
|
obj-$(CONFIG_SCSI_EATA_PIO) += eata_pio.o
|
103 |
|
|
obj-$(CONFIG_SCSI_7000FASST) += wd7000.o
|
104 |
|
|
obj-$(CONFIG_SCSI_MCA_53C9X) += NCR53C9x.o mca_53c9x.o
|
105 |
|
|
obj-$(CONFIG_SCSI_IBMMCA) += ibmmca.o
|
106 |
|
|
obj-$(CONFIG_SCSI_EATA) += eata.o
|
107 |
|
|
obj-$(CONFIG_SCSI_DC390T) += tmscsim.o
|
108 |
|
|
obj-$(CONFIG_SCSI_AM53C974) += AM53C974.o
|
109 |
|
|
obj-$(CONFIG_SCSI_MEGARAID) += megaraid.o
|
110 |
|
|
obj-$(CONFIG_SCSI_MEGARAID2) += megaraid2.o
|
111 |
|
|
obj-$(CONFIG_SCSI_ACARD) += atp870u.o
|
112 |
|
|
obj-$(CONFIG_SCSI_SUNESP) += esp.o
|
113 |
|
|
obj-$(CONFIG_SCSI_GDTH) += gdth.o
|
114 |
|
|
obj-$(CONFIG_SCSI_INITIO) += initio.o
|
115 |
|
|
obj-$(CONFIG_SCSI_INIA100) += a100u2w.o
|
116 |
|
|
obj-$(CONFIG_SCSI_QLOGICPTI) += qlogicpti.o
|
117 |
|
|
obj-$(CONFIG_BLK_DEV_IDESCSI) += ide-scsi.o
|
118 |
|
|
obj-$(CONFIG_SCSI_MESH) += mesh.o
|
119 |
|
|
obj-$(CONFIG_SCSI_MAC53C94) += mac53c94.o
|
120 |
|
|
obj-$(CONFIG_SCSI_PLUTO) += pluto.o
|
121 |
|
|
obj-$(CONFIG_SCSI_DECNCR) += NCR53C9x.o dec_esp.o
|
122 |
|
|
obj-$(CONFIG_BLK_DEV_3W_XXXX_RAID) += 3w-xxxx.o
|
123 |
|
|
obj-$(CONFIG_SCSI_ZALON) += zalon7xx_mod.o
|
124 |
|
|
obj-$(CONFIG_SCSI_PPA) += ppa.o
|
125 |
|
|
obj-$(CONFIG_SCSI_IMM) += imm.o
|
126 |
|
|
obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o jazz_esp.o
|
127 |
|
|
obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o
|
128 |
|
|
obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o
|
129 |
|
|
obj-$(CONFIG_SCSI_FCAL) += fcal.o
|
130 |
|
|
obj-$(CONFIG_SCSI_CPQFCTS) += cpqfc.o
|
131 |
|
|
obj-$(CONFIG_SCSI_LASI700) += lasi700.o 53c700.o
|
132 |
|
|
obj-$(CONFIG_SCSI_NSP32) += nsp32.o
|
133 |
|
|
|
134 |
|
|
subdir-$(CONFIG_ARCH_ACORN) += ../acorn/scsi
|
135 |
|
|
obj-$(CONFIG_ARCH_ACORN) += ../acorn/scsi/acorn-scsi.o
|
136 |
|
|
|
137 |
|
|
obj-$(CONFIG_CHR_DEV_ST) += st.o
|
138 |
|
|
obj-$(CONFIG_CHR_DEV_OSST) += osst.o
|
139 |
|
|
obj-$(CONFIG_BLK_DEV_SD) += sd_mod.o
|
140 |
|
|
obj-$(CONFIG_BLK_DEV_SR) += sr_mod.o
|
141 |
|
|
obj-$(CONFIG_CHR_DEV_SG) += sg.o
|
142 |
|
|
|
143 |
|
|
list-multi := scsi_mod.o sd_mod.o sr_mod.o initio.o a100u2w.o cpqfc.o \
|
144 |
|
|
zalon7xx_mod.o
|
145 |
|
|
scsi_mod-objs := scsi.o hosts.o scsi_ioctl.o constants.o \
|
146 |
|
|
scsicam.o scsi_proc.o scsi_error.o \
|
147 |
|
|
scsi_obsolete.o scsi_queue.o scsi_lib.o \
|
148 |
|
|
scsi_merge.o scsi_dma.o scsi_scan.o \
|
149 |
|
|
scsi_syms.o
|
150 |
|
|
sd_mod-objs := sd.o
|
151 |
|
|
sr_mod-objs := sr.o sr_ioctl.o sr_vendor.o
|
152 |
|
|
initio-objs := ini9100u.o i91uscsi.o
|
153 |
|
|
a100u2w-objs := inia100.o i60uscsi.o
|
154 |
|
|
zalon7xx_mod-objs := zalon7xx.o ncr53c8xx.o
|
155 |
|
|
cpqfc-objs := cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o \
|
156 |
|
|
cpqfcTSworker.o cpqfcTStrigger.o
|
157 |
|
|
|
158 |
|
|
include $(TOPDIR)/Rules.make
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
scsi_mod.o: $(scsi_mod-objs)
|
162 |
|
|
$(LD) -r -o $@ $(scsi_mod-objs)
|
163 |
|
|
|
164 |
|
|
sd_mod.o: $(sd_mod-objs)
|
165 |
|
|
$(LD) -r -o $@ $(sd_mod-objs)
|
166 |
|
|
|
167 |
|
|
sr_mod.o: $(sr_mod-objs)
|
168 |
|
|
$(LD) -r -o $@ $(sr_mod-objs)
|
169 |
|
|
|
170 |
|
|
initio.o: $(initio-objs)
|
171 |
|
|
$(LD) -r -o $@ $(initio-objs)
|
172 |
|
|
|
173 |
|
|
a100u2w.o: $(a100u2w-objs)
|
174 |
|
|
$(LD) -r -o $@ $(a100u2w-objs)
|
175 |
|
|
|
176 |
|
|
zalon7xx_mod.o: $(zalon7xx_mod-objs)
|
177 |
|
|
$(LD) -r -o $@ $(zalon7xx_mod-objs)
|
178 |
|
|
|
179 |
|
|
cpqfc.o: $(cpqfc-objs)
|
180 |
|
|
$(LD) -r -o $@ $(cpqfc-objs)
|
181 |
|
|
|
182 |
|
|
53c8xx_d.h: 53c7,8xx.scr script_asm.pl
|
183 |
|
|
ln -sf 53c7,8xx.scr fake8.c
|
184 |
|
|
$(CPP) $(CPPFLAGS) -traditional -DCHIP=810 fake8.c | grep -v '^#' | $(PERL) script_asm.pl
|
185 |
|
|
mv script.h 53c8xx_d.h
|
186 |
|
|
mv scriptu.h 53c8xx_u.h
|
187 |
|
|
rm fake8.c
|
188 |
|
|
|
189 |
|
|
53c8xx_u.h: 53c8xx_d.h
|
190 |
|
|
|
191 |
|
|
53c7,8xx.o: 53c8xx_u.h
|
192 |
|
|
|
193 |
|
|
53c7xx_d.h: 53c7xx.scr script_asm.pl
|
194 |
|
|
ln -sf 53c7xx.scr fake7.c
|
195 |
|
|
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr710
|
196 |
|
|
mv script.h 53c7xx_d.h
|
197 |
|
|
mv scriptu.h 53c7xx_u.h
|
198 |
|
|
rm fake7.c
|
199 |
|
|
|
200 |
|
|
53c7xx_u.h: 53c7xx_d.h
|
201 |
|
|
|
202 |
|
|
53c7xx.o : 53c7xx_d.h
|
203 |
|
|
|
204 |
|
|
sim710_d.h: sim710.scr script_asm.pl
|
205 |
|
|
ln -sf sim710.scr fake7.c
|
206 |
|
|
$(CPP) $(CPPFLAGS) -traditional -DCHIP=710 fake7.c | grep -v '^#' | $(PERL) -s script_asm.pl -ncr710
|
207 |
|
|
mv script.h sim710_d.h
|
208 |
|
|
mv scriptu.h sim710_u.h
|
209 |
|
|
rm fake7.c
|
210 |
|
|
|
211 |
|
|
sim710_u.h: sim710_d.h
|
212 |
|
|
|
213 |
|
|
sim710.o : sim710_d.h
|
214 |
|
|
|
215 |
|
|
53c700_d.h: 53c700.scr script_asm.pl
|
216 |
|
|
$(PERL) -s script_asm.pl -ncr7x0_family < 53c700.scr
|
217 |
|
|
rm -f scriptu.h
|
218 |
|
|
mv script.h 53c700_d.h
|
219 |
|
|
|
220 |
|
|
53c700.o: 53c700_d.h
|