Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | # # Makefile for the kernel block device drivers. # # Note! Dependencies are done automagically by 'make dep', which also # removes any old dependencies. DON'T put your own dependencies here # unless it's something special (ie not a .c file). # # Note 2! The CFLAGS definition is now inherited from the # parent makefile. # # # Note : at this point, these files are compiled on all systems. # In the future, some of these should be built conditionally. # SUB_DIRS := MOD_SUB_DIRS := $(SUB_DIRS) ALL_SUB_DIRS := $(SUB_DIRS) paride L_TARGET := block.a L_OBJS := genhd.o M_OBJS := MOD_LIST_NAME := BLOCK_MODULES LX_OBJS := ll_rw_blk.o MX_OBJS := ifeq ($(CONFIG_MAC_FLOPPY),y) L_OBJS += swim3.o endif ifeq ($(CONFIG_BLK_DEV_FD),y) L_OBJS += floppy.o else ifeq ($(CONFIG_BLK_DEV_FD),m) M_OBJS += floppy.o endif endif ifeq ($(CONFIG_AMIGA_FLOPPY),y) L_OBJS += amiflop.o else ifeq ($(CONFIG_AMIGA_FLOPPY),m) M_OBJS += amiflop.o endif endif ifeq ($(CONFIG_ATARI_FLOPPY),y) L_OBJS += ataflop.o else ifeq ($(CONFIG_ATARI_FLOPPY),m) M_OBJS += ataflop.o endif endif ifeq ($(CONFIG_ATARI_ACSI),y) LX_OBJS += acsi.o else ifeq ($(CONFIG_ATARI_ACSI),m) MX_OBJS += acsi.o endif endif ifeq ($(CONFIG_ATARI_SLM),y) L_OBJS += acsi_slm.o else ifeq ($(CONFIG_ATARI_SLM),m) M_OBJS += acsi_slm.o endif endif ifeq ($(CONFIG_AMIGA_Z2RAM),y) L_OBJS += z2ram.o else ifeq ($(CONFIG_AMIGA_Z2RAM),m) M_OBJS += z2ram.o endif endif ifeq ($(CONFIG_BLK_DEV_RAM),y) L_OBJS += rd.o else ifeq ($(CONFIG_BLK_DEV_RAM),m) M_OBJS += rd.o endif endif ifeq ($(CONFIG_BLK_DEV_LOOP),y) LX_OBJS += loop.o else ifeq ($(CONFIG_BLK_DEV_LOOP),m) MX_OBJS += loop.o endif endif ifeq ($(CONFIG_BLK_DEV_HD),y) L_OBJS += hd.o endif ifeq ($(CONFIG_BLK_DEV_RZ1000),y) IDE_OBJS += rz1000.o endif ifeq ($(CONFIG_BLK_DEV_CMD640),y) IDE_OBJS += cmd640.o endif ifeq ($(CONFIG_BLK_DEV_IDE_PMAC),y) IDE_OBJS += ide-pmac.o endif ifeq ($(CONFIG_BLK_DEV_IDEPCI),y) IDE_OBJS += ide-pci.o endif ifeq ($(CONFIG_BLK_DEV_IDEDMA),y) IDE_OBJS += ide-dma.o endif ifeq ($(CONFIG_BLK_DEV_DTC2278),y) IDE_OBJS += dtc2278.o endif ifeq ($(CONFIG_BLK_DEV_HT6560B),y) IDE_OBJS += ht6560b.o endif ifeq ($(CONFIG_BLK_DEV_QD6580),y) IDE_OBJS += qd6580.o endif ifeq ($(CONFIG_BLK_DEV_UMC8672),y) IDE_OBJS += umc8672.o endif ifeq ($(CONFIG_BLK_DEV_ALI14XX),y) IDE_OBJS += ali14xx.o endif ifeq ($(CONFIG_BLK_DEV_PDC4030),y) IDE_OBJS += pdc4030.o endif ifeq ($(CONFIG_BLK_DEV_TRM290),y) IDE_OBJS += trm290.o endif ifeq ($(CONFIG_BLK_DEV_OPTI621),y) IDE_OBJS += opti621.o endif ifeq ($(CONFIG_BLK_DEV_NS87415),y) IDE_OBJS += ns87415.o endif ifeq ($(CONFIG_BLK_DEV_VIA82C586),y) IDE_OBJS += via82c586.o endif ifeq ($(CONFIG_BLK_DEV_CMD646),y) IDE_OBJS += cmd646.o endif ifeq ($(CONFIG_BLK_DEV_SL82C105),y) IDE_OBJS += sl82c105.o endif ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored ifeq ($(CONFIG_PROC_FS),y) IDE_OBJS += ide-proc.o endif ###Collect ifeq ($(CONFIG_BLK_DEV_IDE),y) LX_OBJS += ide.o L_OBJS += ide-probe.o $(IDE_OBJS) else ifeq ($(CONFIG_BLK_DEV_IDE),m) MIX_OBJS += ide.o $(IDE_OBJS) M_OBJS += ide-mod.o ide-probe.o endif endif ############ ifeq ($(CONFIG_BLK_DEV_IDEDISK),y) L_OBJS += ide-disk.o else ifeq ($(CONFIG_BLK_DEV_IDEDISK),m) M_OBJS += ide-disk.o endif endif ifeq ($(CONFIG_BLK_DEV_IDECD),y) L_OBJS += ide-cd.o else ifeq ($(CONFIG_BLK_DEV_IDECD),m) M_OBJS += ide-cd.o endif endif ifeq ($(CONFIG_BLK_DEV_IDETAPE),y) L_OBJS += ide-tape.o else ifeq ($(CONFIG_BLK_DEV_IDETAPE),m) M_OBJS += ide-tape.o endif endif ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),y) L_OBJS += ide-floppy.o else ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),m) M_OBJS += ide-floppy.o endif endif ifeq ($(CONFIG_BLK_DEV_PS2),y) L_OBJS += ps2esdi.o endif ifeq ($(CONFIG_BLK_DEV_XD),y) L_OBJS += xd.o else ifeq ($(CONFIG_BLK_DEV_XD),m) M_OBJS += xd.o endif endif ifeq ($(CONFIG_BLK_DEV_MD),y) LX_OBJS += md.o ifeq ($(CONFIG_MD_LINEAR),y) L_OBJS += linear.o else ifeq ($(CONFIG_MD_LINEAR),m) M_OBJS += linear.o endif endif ifeq ($(CONFIG_MD_STRIPED),y) L_OBJS += raid0.o else ifeq ($(CONFIG_MD_STRIPED),m) M_OBJS += raid0.o endif endif ifeq ($(CONFIG_MD_MIRRORING),y) L_OBJS += raid1.o else ifeq ($(CONFIG_MD_MIRRORING),m) M_OBJS += raid1.o endif endif ifeq ($(CONFIG_MD_RAID5),y) L_OBJS += raid5.o else ifeq ($(CONFIG_MD_RAID5),m) M_OBJS += raid5.o endif endif endif ifeq ($(CONFIG_BLK_DEV_NBD),y) L_OBJS += nbd.o else ifeq ($(CONFIG_BLK_DEV_NBD),m) M_OBJS += nbd.o endif endif ifeq ($(CONFIG_PARIDE),y) SUB_DIRS += paride MOD_IN_SUB_DIRS += paride else ifeq ($(CONFIG_PARIDE),m) MOD_IN_SUB_DIRS += paride endif endif include $(TOPDIR)/Rules.make ide-mod.o: __KEEPMAKEFILEO__GH.o $(IDE_OBJS) $(LD) $(LD_RFLAG) -r -o $@ ide.o $(IDE_OBJS) |