OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [drivers/] [block/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
#
2
# Makefile for the kernel block device drivers.
3
#
4
# Note! Dependencies are done automagically by 'make dep', which also
5
# removes any old dependencies. DON'T put your own dependencies here
6
# unless it's something special (ie not a .c file).
7
#
8
# Note 2! The CFLAGS definition is now inherited from the
9
# parent makefile.
10
#
11
 
12
all: links first_rule
13
 
14
L_TARGET := block.a
15
L_OBJS   := ll_rw_blk.o genhd.o
16
M_OBJS   :=
17
MOD_LIST_NAME := BLOCK_MODULES
18
 
19
LK        = README.fd README.hd README.ide README.md \
20
            ide_modes.h ide-cd.c ide-tape.c ide-tape.h \
21
            linear.c loop.c md.c raid0.c raid1.c raid5.c rd.c
22
 
23
# Architecture dependencies
24
 
25
ifeq ($(MACHINE),arc)
26
  FLOPPY = fd1772.o fd1772dma.o
27
  FLOPPYMOD = fd1772_mod.o
28
endif
29
 
30
ifeq ($(MACHINE),a5k)
31
  FLOPPY = floppy.o
32
  FLOPPYMOD = floppy.o
33
endif
34
 
35
ifeq ($(MACHINE),rpc)
36
  FLOPPY = floppy.o
37
  FLOPPYMOD = floppy.o
38
endif
39
 
40
# Common dependencies
41
 
42
ifdef FLOPPY
43
  ifeq ($(CONFIG_BLK_DEV_FD),y)
44
    L_OBJS += $(FLOPPY)
45
  else
46
    ifeq ($(CONFIG_BLK_DEV_FD),m)
47
      M_OBJS += $(FLOPPYMOD)
48
    endif
49
  endif
50
endif
51
 
52
ifeq ($(CONFIG_BLK_DEV_PART),y)
53
  L_OBJS += adfspart.o
54
endif
55
 
56
ifeq ($(CONFIG_BLK_DEV_RAM),y)
57
  L_OBJS += rd.o
58
else
59
  ifeq ($(CONFIG_BLK_DEV_RAM),m)
60
    M_OBJS += rd.o
61
  endif
62
endif
63
 
64
ifeq ($(CONFIG_BLK_DEV_LOOP),y)
65
  L_OBJS += loop.o
66
else
67
  ifeq ($(CONFIG_BLK_DEV_LOOP),m)
68
    M_OBJS += loop.o
69
  endif
70
endif
71
 
72
ifeq ($(CONFIG_BLK_DEV_HD),y)
73
  L_OBJS += hd.o
74
endif
75
 
76
ifeq ($(CONFIG_BLK_DEV_IDE),y)
77
  L_OBJS += ide.o
78
endif
79
 
80
ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),y)
81
  L_OBJS += ide-ics.o
82
else
83
  ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),m)
84
    M_OBJS += ide-ics.o
85
  endif
86
endif
87
 
88
ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),y)
89
  L_OBJS += ide-rapide.o
90
else
91
  ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),m)
92
    M_OBJS += ide-rapide.o
93
  endif
94
endif
95
 
96
ifeq ($(CONFIG_BLK_DEV_IDECD),y)
97
  L_OBJS += ide-cd.o
98
endif
99
 
100
ifeq ($(CONFIG_BLK_DEV_IDETAPE),y)
101
  L_OBJS += ide-tape.o
102
endif
103
 
104
ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),y)
105
L_OBJS += ide-floppy.o
106
endif
107
 
108
ifeq ($(CONFIG_BLK_DEV_XD),y)
109
  L_OBJS += mfmhd.o mfm.o
110
else
111
  ifeq ($(CONFIG_BLK_DEV_XD),m)
112
    M_OBJS += mfmhd_mod.o
113
  endif
114
endif
115
 
116
ifeq ($(CONFIG_BLK_DEV_MD),y)
117
LX_OBJS += md.o
118
 
119
ifeq ($(CONFIG_MD_LINEAR),y)
120
L_OBJS += linear.o
121
else
122
  ifeq ($(CONFIG_MD_LINEAR),m)
123
  M_OBJS += linear.o
124
  endif
125
endif
126
 
127
ifeq ($(CONFIG_MD_STRIPED),y)
128
L_OBJS += raid0.o
129
else
130
  ifeq ($(CONFIG_MD_STRIPED),m)
131
  M_OBJS += raid0.o
132
  endif
133
endif
134
 
135
ifeq ($(CONFIG_MD_MIRRORING),y)
136
L_OBJS += raid1.o
137
else
138
  ifeq ($(CONFIG_MD_MIRRORING),m)
139
  M_OBJS += raid1.o
140
  endif
141
endif
142
 
143
ifeq ($(CONFIG_MD_RAID5),y)
144
L_OBJS += raid5.o
145
else
146
  ifeq ($(CONFIG_MD_RAID5),m)
147
  M_OBJS += raid5.o
148
  endif
149
endif
150
 
151
endif
152
 
153
include $(TOPDIR)/Rules.make
154
 
155
fastdep: links
156
 
157
fd1772_mod.o: $(FLOPPY)
158
        ld -r -o $@ $(FLOPPY)
159
 
160
mfmhd_mod.o: mfmhd.o mfm.o
161
        ld -r -o $@ mfmhd.o mfm.o
162
 
163
.PHONY: links
164
links:
165
        -@for f in $(LK); do \
166
                if [ ! -e $$f ]; then \
167
                    echo "ln -s ../../../../drivers/block/$$f ."; \
168
                    ln -s ../../../../drivers/block/$$f .; \
169
                fi; \
170
        done
171
 
172
mrproper:
173
        -@for f in $(LK); do \
174
                if [ -L $$f ]; then \
175
                        echo $(RM) $$f; \
176
                        $(RM) $$f; \
177
                elif [ -f $$f ]; then \
178
                        echo not removing $$f; \
179
                fi; \
180
        done
181
 
182
%.o: %.S
183
        $(CC) $(CFLAGS) -E $< | tr ';$$' '\n#' > ..tmp.s
184
        $(CC) $(CFLAGS) -c -o $@ ..tmp.s
185
        $(RM) ..tmp.s

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.