forked from sklnet/DDT-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
350 lines (300 loc) · 4.88 KB
/
Makefile
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# Tuxbox drivers Makefile
# there are only three targets
#
# make all - builds all modules
# make install - installs the modules
# make clean - deletes modules recursively
#
# note that "clean" only works in the current
# directory while "all" and "install" will
# execute from the top dir.
ifeq ($(KERNELRELEASE),)
DRIVER_TOPDIR:=$(shell pwd)
include $(DRIVER_TOPDIR)/kernel.make
else
CCFLAGSY += -D__TDT__ -D__LINUX__ -D__SH4__ -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB
CONFIGFILE := $(DRIVER_TOPDIR)/.config
include $(CONFIGFILE)
ifdef OCTAGON1008
CCFLAGSY += -DOCTAGON1008
endif
ifdef UFS910
CCFLAGSY += -DUFS910
endif
ifdef CUBEREVO
CCFLAGSY += -DCUBEREVO
endif
ifdef CUBEREVO_MINI
CCFLAGSY += -DCUBEREVO_MINI
endif
ifdef CUBEREVO_MINI2
CCFLAGSY += -DCUBEREVO_MINI2
endif
ifdef CUBEREVO_250HD
CCFLAGSY += -DCUBEREVO_250HD
endif
ifdef CUBEREVO_2000HD
CCFLAGSY += -DCUBEREVO_2000HD
endif
ifdef CUBEREVO_9500HD
CCFLAGSY += -DCUBEREVO_9500HD
endif
ifdef CUBEREVO_MINI_FTA
CCFLAGSY += -DCUBEREVO_MINI_FTA
endif
ifdef CUBEREVO_3000HD
CCFLAGSY += -DCUBEREVO_3000HD
endif
ifdef TF7700
CCFLAGSY += -DTF7700
endif
ifdef HL101
CCFLAGSY += -DHL101
endif
ifdef VIP1_V2
CCFLAGSY += -DVIP1_V2
endif
ifdef VIP2_V1
CCFLAGSY += -DVIP2_V1
endif
ifdef UFS922
CCFLAGSY+=-DUFS922
endif
ifdef UFC960
CCFLAGSY+=-DUFC960
endif
ifdef UFS912
CCFLAGSY+=-DUFS912
endif
ifdef UFS913
CCFLAGSY+=-DUFS913
endif
ifdef SPARK
CCFLAGSY+=-DSPARK
endif
ifdef SPARK7162
CCFLAGSY+=-DSPARK7162
endif
ifdef FORTIS_HDBOX
CCFLAGSY += -DFORTIS_HDBOX
endif
ifdef ATEVIO7500
CCFLAGSY += -DATEVIO7500
endif
ifdef HS7110
CCFLAGSY += -DHS7110
endif
ifdef HS7119
CCFLAGSY += -DHS7119
endif
ifdef HS7420
CCFLAGSY += -DHS7420
endif
ifdef HS7429
CCFLAGSY += -DHS7429
endif
ifdef HS7810A
CCFLAGSY += -DHS7810A
endif
ifdef HS7819
CCFLAGSY += -DHS7819
endif
ifdef ATEMIO520
CCFLAGSY += -DATEMIO520
endif
ifdef ATEMIO530
CCFLAGSY += -DATEMIO530
endif
ifdef ADB_BOX
CCFLAGSY += -DADB_BOX
endif
ifdef IPBOX9900
CCFLAGSY += -DIPBOX9900
endif
ifdef IPBOX99
CCFLAGSY += -DIPBOX99
endif
ifdef IPBOX55
CCFLAGSY += -DIPBOX55
endif
ifdef VITAMIN_HD5000
CCFLAGSY += -DVITAMIN_HD5000
endif
ifdef SAGEMCOM88
CCFLAGSY += -DSAGEMCOM88
endif
ifdef ARIVALINK200
CCFLAGSY += -DARIVALINK200
endif
ifneq (,$(findstring 2.6.3,$(KERNELVERSION)))
ccflags-y += $(CCFLAGSY)
else
CFLAGS += $(CCFLAGSY)
endif
export CCFLAGSY
obj-y := avs/
obj-y += multicom/
obj-y += stgfb/
obj-y += player2/
ifndef SAGEMCOM88 #Sagemcom88 has own boxtype
obj-y += boxtype/
endif
obj-y += simu_button/
obj-y += e2_proc/
obj-y += frontends/
obj-y += frontcontroller/
ifdef WLANDRIVER
obj-y += wireless/
endif
obj-y += cpu_frequ/
ifeq (,$(wildcard $(DRIVER_TOPDIR)/pti_np ))
obj-y += pti/
else
obj-y += pti_np/
endif
#obj-y += compcache/
obj-y += bpamem/
ifdef HL101
obj-y += smartcard/
obj-y += dvbt/as102/
endif
ifdef ADB_BOX
obj-y += smartcard/
obj-y += adb_box_fan/
obj-y += cec_adb_box/
obj-y += dvbt/as102/
obj-y += dvbt/siano/
endif
ifndef VIP2_V1
ifndef SPARK
ifndef SPARK7162
obj-y += cic/
endif
endif
endif
# Button and Led Driver only needed for old 14W Kathrein Ufs 910 boxes
ifdef UFS910
obj-y += button/
obj-y += led/
endif
ifdef UFS922
obj-y += ufs922_fan/
endif
ifdef UFC960
obj-y += smartcard/
endif
ifdef UFS912
obj-y += cec/
endif
ifdef UFS913
obj-y += cec/
endif
ifdef ATEVIO7500
obj-y += cec/
obj-y += smartcard/
obj-y += sata_switch/
endif
ifdef HS7110
obj-y += cec/
obj-y += smartcard/
endif
ifdef HS7119
obj-y += cec/
obj-y += smartcard/
endif
ifdef HS7420
obj-y += cec/
obj-y += smartcard/
endif
ifdef HS7429
obj-y += cec/
obj-y += smartcard/
endif
ifdef HS7810A
obj-y += cec/
obj-y += smartcard/
endif
ifdef HS7819
obj-y += cec/
obj-y += smartcard/
endif
ifdef ATEMIO520
obj-y += cec/
obj-y += smartcard/
endif
ifdef ATEMIO530
obj-y += cec/
obj-y += smartcard/
endif
ifdef SPARK
obj-y += cec/
obj-y += smartcard/
endif
ifdef SPARK7162
obj-y += smartcard/
obj-y += i2c_spi/
obj-y += cec/
obj-y += dvbt/as102/
obj-y += dvbt/siano/
endif
ifdef OCTAGON1008
obj-y += smartcard/
endif
ifdef FORTIS_HDBOX
obj-y += smartcard/
endif
ifdef IPBOX9900
obj-y += siinfo/
obj-y += rmu/
obj-y += ipbox99xx_fan/
obj-y += smartcard/
obj-y += dvbt/as102/
endif
ifdef IPBOX99
obj-y += siinfo/
obj-y += ipbox99xx_fan/
obj-y += smartcard/
obj-y += dvbt/as102/
endif
ifdef IPBOX55
obj-y += siinfo/
obj-y += smartcard/
obj-y += dvbt/as102/
endif
ifdef CUBEREVO
obj-y += smartcard/
endif
ifdef CUBEREVO_MINI2
obj-y += smartcard/
endif
ifdef CUBEREVO_250HD
obj-y += smartcard/
endif
ifdef CUBEREVO_2000HD
obj-y += smartcard/
endif
ifdef CUBEREVO_9500HD
obj-y += smartcard/
endif
ifdef CUBEREVO_3000HD
obj-y += smartcard/
endif
ifdef VITAMIN_HD5000
obj-y += cec/
obj-y += smartcard/
endif
ifdef SAGEMCOM88
obj-y += cec/
obj-y += smartcard/
obj-y += sagemcomtype/
obj-y += fan_sagemcom88/
obj-y += dvbt/as102/
obj-y += dvbt/siano/
endif
ifdef ARIVALINK200
obj-y += smartcard/
obj-y += cec_adb_box/
obj-y += dvbt/as102/
obj-y += dvbt/siano/
endif
endif