-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.ap.usb
334 lines (280 loc) · 9.09 KB
/
Makefile.ap.usb
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
# In-Tree Makefile for USB combo
EXTRA_CFLAGS += -Idrivers/net/wireless/RT5572_ap/MODULE/include
EXTRA_CFLAGS += -Idrivers/net/wireless/RT5572_ap/UTIL/include
EXTRA_CFLAGS += -Idrivers/net/wireless/RT5572_ap/NETIF/include
EXTRA_CFLAGS += -Idrivers/net/wireless/RT5572_ap/MODULE/ate/include
# UTIL module
obj-$(CONFIG_RTUSB_AP) += RT5572_ap_util.o
RT5572_ap_util-y += UTIL/common/rt_os_util.o
RT5572_ap_util-y += UTIL/os/linux/rt_linux_symb.o
RT5572_ap_util-y += UTIL/os/linux/rt_rbus_pci_util.o
RT5572_ap_util-y += UTIL/os/linux/rt_usb_util.o
RT5572_ap_util-y += UTIL/os/linux/rt_linux.o
# MODULE module
obj-$(CONFIG_RTUSB_AP) += RT5572_ap.o
RT5572_ap-y += MODULE/common/crypt_md5.o
RT5572_ap-y += MODULE/common/crypt_sha2.o
RT5572_ap-y += MODULE/common/crypt_hmac.o
RT5572_ap-y += MODULE/common/crypt_aes.o
RT5572_ap-y += MODULE/common/crypt_arc4.o
RT5572_ap-y += MODULE/common/mlme.o
RT5572_ap-y += MODULE/common/cmm_wep.o
RT5572_ap-y += MODULE/common/action.o
RT5572_ap-y += MODULE/common/cmm_data.o
RT5572_ap-y += MODULE/common/rtmp_init.o
RT5572_ap-y += MODULE/common/rtmp_init_inf.o
RT5572_ap-y += MODULE/common/cmm_tkip.o
RT5572_ap-y += MODULE/common/cmm_aes.o
RT5572_ap-y += MODULE/common/cmm_sync.o
RT5572_ap-y += MODULE/common/eeprom.o
RT5572_ap-y += MODULE/common/cmm_sanity.o
RT5572_ap-y += MODULE/common/cmm_info.o
RT5572_ap-y += MODULE/common/cmm_cfg.o
RT5572_ap-y += MODULE/common/cmm_wpa.o
RT5572_ap-y += MODULE/common/cmm_radar.o
RT5572_ap-y += MODULE/common/spectrum.o
RT5572_ap-y += MODULE/common/rtmp_timer.o
RT5572_ap-y += MODULE/common/rt_channel.o
RT5572_ap-y += MODULE/common/cmm_profile.o
RT5572_ap-y += MODULE/common/cmm_asic.o
RT5572_ap-y += MODULE/common/cmm_cmd.o
RT5572_ap-y += MODULE/rate_ctrl/ra_ctrl.o
RT5572_ap-y += MODULE/rate_ctrl/alg_legacy.o
RT5572_ap-y += MODULE/rate_ctrl/alg_ags.o
RT5572_ap-y += MODULE/os/linux/rt_profile.o
RT5572_ap-y += MODULE/chips/rtmp_chip.o
RT5572_ap-y += MODULE/ap/ap.o
RT5572_ap-y += MODULE/ap/ap_assoc.o
RT5572_ap-y += MODULE/ap/ap_auth.o
RT5572_ap-y += MODULE/ap/ap_connect.o
RT5572_ap-y += MODULE/ap/ap_mlme.o
RT5572_ap-y += MODULE/ap/ap_sanity.o
RT5572_ap-y += MODULE/ap/ap_sync.o
RT5572_ap-y += MODULE/ap/ap_wpa.o
RT5572_ap-y += MODULE/ap/ap_data.o
RT5572_ap-y += MODULE/common/uapsd.o
RT5572_ap-y += MODULE/ap/ap_autoChSel.o
RT5572_ap-y += MODULE/ap/ap_qload.o
RT5572_ap-y += MODULE/ap/ap_cfg.o
RT5572_ap-y += MODULE/common/ba_action.o
RT5572_ap-y += MODULE/common/cmm_mac_usb.o
RT5572_ap-y += MODULE/common/rtusb_io.o
RT5572_ap-y += MODULE/common/rtusb_data.o
RT5572_ap-y += MODULE/common/cmm_data_usb.o
RT5572_ap-y += MODULE/common/rtmp_mcu.o
RT5572_ap-y += MODULE/common/rtusb_bulk.o
RT5572_ap-y += MODULE/os/linux/rt_usb.o
RT5572_ap-y += MODULE/common/ee_prom.o
RT5572_ap-y += MODULE/common/cmm_dfs.o
RT5572_ap-y += MODULE/common/cmm_cs.o
RT5572_ap-y += MODULE/common/ee_prom.o
RT5572_ap-y += MODULE/common/ee_efuse.o
RT5572_ap-y += MODULE/common/rt_rf.o
RT5572_ap-y += MODULE/os/linux/rt_symb.o
RT5572_ap-y += MODULE/common/rt_led.o
# NET module
obj-$(CONFIG_RTUSB_AP) += RT5572_ap_net.o
RT5572_ap_net-y += NETIF/common/rtusb_dev_id.o
RT5572_ap_net-y += NETIF/os/linux/ap_ioctl.o
RT5572_ap_net-y += NETIF/os/linux/rt_main_dev.o
RT5572_ap_net-y += NETIF/os/linux/usb_main_dev.o
# By feature
ifeq ($(CONFIG_RTUSB_AP_WSC),y)
RT5572_ap-y += MODULE/common/wsc.o
RT5572_ap-y += MODULE/common/wsc_tlv.o
RT5572_ap-y += MODULE/common/wsc_ufd.o
RT5572_ap-y += MODULE/common/crypt_biginteger.o
RT5572_ap-y += MODULE/common/crypt_dh.o
RT5572_ap-y += MODULE/common/wsc_v2.o
endif
ifeq ($(CONFIG_RTUSB_WDS),y)
RT5572_ap-y += MODULE/ap/ap_wds.o
RT5572_ap-y += MODULE/common/client_wds.o
RT5572_ap_net-y += NETIF/ap/ap_wds_inf.o
endif
ifeq ($(CONFIG_RTUSB_AP_MBSS),y)
RT5572_ap-y += MODULE/ap/ap_mbss.o
RT5572_ap_net-y += NETIF/ap/ap_mbss_inf.o
endif
ifeq ($(CONFIG_RTUSB_APCLI),y)
RT5572_ap-y += MODULE/ap/ap_apcli.o
RT5572_ap-y += MODULE/ap/apcli_ctrl.o
RT5572_ap-y += MODULE/ap/apcli_sync.o
RT5572_ap-y += MODULE/ap/apcli_auth.o
RT5572_ap-y += MODULE/ap/apcli_assoc.o
RT5572_ap-y += MODULE/common/cmm_mat.o
RT5572_ap-y += MODULE/common/cmm_mat_iparp.o
RT5572_ap-y += MODULE/common/cmm_mat_pppoe.o
RT5572_ap-y += MODULE/common/cmm_mat_ipv6.o
RT5572_ap_net-y += NETIF/ap/ap_apcli_inf.o
endif
ifeq ($(CONFIG_RTUSB_DFS),y)
RT5572_ap-y += MODULE/common/cmm_dfs.o
endif
ifeq ($(CONFIG_RTUSB_CS),y)
RT5572_ap-y += MODULE/common/cmm_cs.o
endif
ifeq ($(CONFIG_RTUSB_IGMP_SNOOP),y)
RT5572_ap-y += MODULE/common/igmp_snoop.o
endif
ifeq ($(CONFIG_RTUSB_NETIF_BLOCK),y)
RT5572_ap-y += MODULE/common/netif_block.o
endif
ifeq ($(CONFIG_RTUSB_DLS),y)
RT5572_ap-y += MODULE/ap/ap_dls.o
endif
ifeq ($(CONFIG_RTUSB_IDS),y)
RT5572_ap-y += MODULE/ap/ap_ids.o
endif
ifeq ($(CONFIG_RTUSB_AP_FLASH_SUPPORT),y)
RT5572_ap-y += MODULE/common/ee_flash.o
endif
# WAPI
ifeq ($(CONFIG_RTUSB_AP_WAPI),y)
RT5572_ap-y += MODULE/common/wapi.o
RT5572_ap-y += MODULE/common/wapi_sms4.o
RT5572_ap-y += MODULE/common/wapi_crypt.o
endif
# Chip related
ifeq ($(CONFIG_RT2870_AP),y)
RT5572_ap-y += MODULE/chips/rt28xx.o
endif
ifeq ($(CONFIG_RT3572_AP),y)
RT5572_ap-y += MODULE/chips/rt28xx.o
RT5572_ap-y += MODULE/chips/rt30xx.o
RT5572_ap-y += MODULE/chips/rt35xx.o
endif
ifeq ($(CONFIG_RT3573_AP),y)
RT5572_ap-y += MODULE/chips/rt28xx.o
RT5572_ap-y += MODULE/chips/rt30xx.o
RT5572_ap-y += MODULE/chips/rt35xx.o
RT5572_ap-y += MODULE/chips/rt3593.o
endif
ifeq ($(CONFIG_RT5572_AP),y)
RT5572_ap-y += MODULE/chips/rt30xx.o
RT5572_ap-y += MODULE/chips/rt5592.o
endif
# ATE
ifeq ($(CONFIG_RTUSB_AP_ATE),y)
RT5572_ap-y += MODULE/ate/common/rt_ate.o
RT5572_ap-y += MODULE/ate/common/ate_usb.o
endif
ifeq ($(CONFIG_RT2870_AP_ATE),y)
RT5572_ap-y += MODULE/ate/chips/rt28xx_ate.o
endif
ifeq ($(CONFIG_RT3572_AP_ATE),y)
RT5572_ap-y += MODULE/ate/chips/rt28xx_ate.o
RT5572_ap-y += MODULE/ate/chips/rt35xx_ate.o
endif
ifeq ($(CONFIG_RT5572_AP_ATE),y)
RT5572_ap-y += MODULE/ate/chips/rt5592_ate.o
endif
# QA tool
ifeq ($(CONFIG_RTUSB_AP_QA),y)
RT5572_ap-y += MODULE/ate/common/rt_qa.o
endif
###################
# CFLAGS
###################
EXTRA_CFLAGS += -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX\
-Wall -Wstrict-prototypes -Wno-trigraphs
EXTRA_CFLAGS += -DSYSTEM_LOG_SUPPORT -DKTHREAD_SUPPORT
EXTRA_CFLAGS += -DCONFIG_AP_SUPPORT -DUAPSD_SUPPORT -DIAPP_SUPPORT -DDBG\
-DDOT1X_SUPPORT -DAP_SCAN_SUPPORT
EXTRA_CFLAGS += -DRTMP_MAC_USB -DRTMP_USB_SUPPORT
EXTRA_CFLAGS += -DSTATS_COUNT_SUPPORT -DDOT11_N_SUPPORT -DRTDEV_SUPPORT
ifeq ($(CONFIG_RTUSB_AP),m)
EXTRA_CFLAGS += -DOS_ABL_SUPPORT
EXTRA_CFLAGS += -DOS_ABL_FUNC_SUPPORT
EXTRA_CFLAGS += -DOS_ABL_OS_PCI_SUPPORT
EXTRA_CFLAGS += -DOS_ABL_OS_USB_SUPPORT
EXTRA_CFLAGS += -DOS_ABL_OS_AP_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_AP_WSC),y)
EXTRA_CFLAGS += -DWSC_AP_SUPPORT -DWSC_INCLUDED -DWSC_V2_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_WDS),y)
EXTRA_CFLAGS += -DWDS_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_MBSS),y)
EXTRA_CFLAGS += -DMBSS_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_APCLI),y)
EXTRA_CFLAGS += -DAPCLI_SUPPORT
EXTRA_CFLAGS += -DMAT_SUPPORT
EXTRA_CFLAGS += -DAP_SCAN_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_AP_DLS),y)
EXTRA_CFLAGS += -DQOS_DLS_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_IDS),y)
EXTRA_CFLAGS += -DIDS_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_AP_FLASH_SUPPORT), y)
EXTRA_CFLAGS += -DRTMP_FLASH_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_AP_80211N_DRAFT3),y)
EXTRA_CFLAGS += -DDOT11N_DRAFT3
endif
ifeq ($(CONFIG_RTUSB_LLTD),y)
EXTRA_CFLAGS += -DLLTD_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_IGMP_SNOOP),y)
EXTRA_CFLAGS += -DIGMP_SNOOP_SUPPORT
endif
ifeq ($(CONFIG_RTUSB_NETIF_BLOCK),y)
EXTRA_CFLAGS += -DBLOCK_NET_IF
endif
# Chip related
ifeq ($(CONFIG_RT2870_AP), y)
EXTRA_CFLAGS += -DRT2870 -DRT28xx -DRTMP_TIMER_TASK_SUPPORT -DA_BAND_SUPPORT
ifeq ($(CONFIG_RTUSB_DFS), y)
EXTRA_CFLAGS += -DDFS_SOFTWARE_SUPPORT
endif
endif
ifeq ($(CONFIG_RT3572_AP), y)
EXTRA_CFLAGS += -DRT2870 -DRT28xx -DRT30xx -DRT35xx -DRT3572 -DRTMP_TIMER_TASK_SUPPORT -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DA_BAND_SUPPORT -DVCORECAL_SUPPORT
ifeq ($(CONFIG_RTUSB_DFS), y)
EXTRA_CFLAGS += -DDFS_DEBUG
endif
ifeq ($(CONFIG_RTUSB_CS_SUPPORT), y)
EXTRA_CFLAGS += -DCARRIER_DETECTION_FIRMWARE_SUPPORT
endif
endif
ifeq ($(CONFIG_RT3573_AP), y)
EXTRA_CFLAGS += -DRT30xx -DRT35xx -DRT3593 -DRT3573 -DA_BAND_SUPPORT -DDOT11N_SS3_SUPPORT -DVCORECAL_SUPPORT
endif
ifeq ($(CONFIG_RT5572_AP), y)
EXTRA_CFLAGS += -DRT30xx -DRT5572 -DRT5592 -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DRTMP_TIMER_TASK_SUPPORT -DA_BAND_SUPPORT -DIQ_CAL_SUPPORT -DVCORECAL_SUPPORT -DRTMP_TEMPERATURE_COMPENSATION
ifeq ($(CONFIG_RTUSB_DFS), y)
EXTRA_CFLAGS += -DDFS_SOFTWARE_SUPPORT -DDFS_HARDWARE_SUPPORT -DDFS_DEBUG
endif
ifeq ($(CONFIG_RTUSB_CS_SUPPORT), y)
EXTRA_CFLAGS += -DCARRIER_DETECTION_FIRMWARE_SUPPORT
endif
endif
# ATE
ifeq ($(CONFIG_RTUSB_AP_ATE), y)
EXTRA_CFLAGS += -DRALINK_ATE -DCONFIG_RT2880_ATE_CMD_NEW
endif
# QA
ifeq ($(CONFIG_RTUSB_AP_QA), y)
EXTRA_CFLAGS += -DRALINK_QA
endif
# WAPI
ifeq ($(CONFIG_RTUSB_AP_WAPI), y)
EXTRA_CFLAGS += -DWAPI_SUPPORT -DSOFT_ENCRYPT -DEXPORT_SYMTAB
endif
# NEW MBSS
ifeq ($(CONFIG_RTUSB_AP_NEW_MBSS_MODE), y)
EXTRA_CFLAGS += -DNEW_MBSSID_MODE
endif
clean:
@rm -f common/*.o
@rm -f ap/*.o
@rm -f sta/*.o
@rm -f os/linux/*.o
@rm -f chips/*.o
@rm -f `find ./ -name *.o.cmd`
@rm -f *.ko
@rm -f *.o