f57d7bbffb24773a453e5eef38b213f8fdf96b24
[safe/jmp/linux-2.6] / drivers / staging / rt2860 / config.mk
1 # Support ATE function
2 HAS_ATE=n
3
4 # Support 28xx QA ATE function
5 HAS_28xx_QA=n
6
7 # Support Wpa_Supplicant
8 HAS_WPA_SUPPLICANT=n
9
10 # Support Native WpaSupplicant for Network Maganger
11 HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
12
13 #Support Net interface block while Tx-Sw queue full
14 HAS_BLOCK_NET_IF=n
15
16 #Support DFS function
17 HAS_DFS_SUPPORT=n
18
19 #Support Carrier-Sense function
20 HAS_CS_SUPPORT=n
21
22 #ifdef MULTI_CARD
23 # Support for Multiple Cards
24 HAS_MC_SUPPORT=n
25 #endif // MULTI_CARD //
26
27 #Support for IEEE802.11e DLS
28 HAS_QOS_DLS_SUPPORT=n
29
30 #Support for EXT_CHANNEL
31 HAS_EXT_BUILD_CHANNEL_LIST=n
32
33 #Support for Net-SNMP
34 HAS_SNMP_SUPPORT=n
35
36 #Support features of Single SKU.
37 HAS_SINGLE_SKU_SUPPORT=n
38
39 #Support features of 802.11n
40 HAS_DOT11_N_SUPPORT=y
41
42
43 #################################################
44
45 CC := $(CROSS_COMPILE)gcc
46 LD := $(CROSS_COMPILE)ld
47
48 WFLAGS := -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT  -DLINUX -Wall -Wstrict-prototypes -Wno-trigraphs
49
50
51 #################################################
52
53 #ifdef CONFIG_STA_SUPPORT
54 # config for STA mode
55
56 ifeq ($(RT28xx_MODE),STA)
57 WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
58
59 ifeq ($(HAS_WPA_SUPPLICANT),y)
60 WFLAGS += -DWPA_SUPPLICANT_SUPPORT
61 endif
62
63 ifeq ($(HAS_NATIVE_WPA_SUPPLICANT_SUPPORT),y)
64 WFLAGS += -DNATIVE_WPA_SUPPLICANT_SUPPORT
65 endif
66
67 ifeq ($(HAS_ATE),y)
68 WFLAGS += -DRALINK_ATE
69 ifeq ($(HAS_28xx_QA),y)
70 WFLAGS += -DRALINK_28xx_QA
71 endif
72 endif
73
74 ifeq ($(HAS_SNMP_SUPPORT),y)
75 WFLAGS += -DSNMP_SUPPORT
76 endif
77
78 ifeq ($(HAS_QOS_DLS_SUPPORT),y)
79 WFLAGS += -DQOS_DLS_SUPPORT
80 endif
81
82 ifeq ($(HAS_DOT11_N_SUPPORT),y)
83 WFLAGS += -DDOT11_N_SUPPORT
84 endif
85
86 ifeq ($(HAS_CS_SUPPORT),y)
87 WFLAGS += -DCARRIER_DETECTION_SUPPORT
88 endif
89
90 ifeq ($(HAS_SINGLE_SKU_SUPPORT),y)
91 WFLAGS += -DSINGLE_SKU
92 endif
93
94 endif
95 # endif of ifeq ($(RT28xx_MODE),STA)
96 #endif // CONFIG_STA_SUPPORT //
97
98 #################################################
99
100 #################################################
101
102 #
103 # Common compiler flag
104 #
105
106
107 ifeq ($(HAS_EXT_BUILD_CHANNEL_LIST),y)
108 WFLAGS += -DEXT_BUILD_CHANNEL_LIST
109 endif
110
111 ifeq ($(CHIPSET),2860)
112 WFLAGS +=-DRT2860
113 endif
114
115 ifeq ($(CHIPSET),2870)
116 WFLAGS +=-DRT2870
117 endif
118
119 ifeq ($(PLATFORM),5VT)
120 #WFLAGS += -DCONFIG_5VT_ENHANCE
121 endif
122
123 ifeq ($(HAS_BLOCK_NET_IF),y)
124 WFLAGS += -DBLOCK_NET_IF
125 endif
126
127 ifeq ($(HAS_DFS_SUPPORT),y)
128 WFLAGS += -DDFS_SUPPORT
129 endif
130
131 #ifdef MULTI_CARD
132 ifeq ($(HAS_MC_SUPPORT),y)
133 WFLAGS += -DMULTIPLE_CARD_SUPPORT
134 endif
135 #endif // MULTI_CARD //
136
137 ifeq ($(HAS_LLTD),y)
138 WFLAGS += -DLLTD_SUPPORT
139 endif
140
141 ifeq ($(PLATFORM),IXP)
142 WFLAGS += -DRT_BIG_ENDIAN
143 endif
144
145 ifeq ($(PLATFORM),IKANOS_V160)
146 WFLAGS += -DRT_BIG_ENDIAN -DIKANOS_VX_1X0
147 endif
148
149 ifeq ($(PLATFORM),IKANOS_V180)
150 WFLAGS += -DRT_BIG_ENDIAN -DIKANOS_VX_1X0
151 endif
152
153 ifeq ($(PLATFORM),INF_TWINPASS)
154 WFLAGS += -DRT_BIG_ENDIAN -DINF_TWINPASS
155 endif
156
157 ifeq ($(PLATFORM),INF_DANUBE)
158 WFLAGS += -DINF_DANUBE -DRT_BIG_ENDIAN
159 endif
160
161 ifeq ($(PLATFORM),CAVM_OCTEON)
162 WFLAGS += -DRT_BIG_ENDIAN
163 endif
164
165 ifeq ($(PLATFORM),BRCM_6358)
166 WFLAGS += -DRT_BIG_ENDIAN
167 endif
168
169 ifeq ($(PLATFORM),INF_AMAZON_SE)
170 #WFLAGS += -DRT_BIG_ENDIAN -DINF_AMAZON_SE -DBG_FT_SUPPORT
171 WFLAGS += -DRT_BIG_ENDIAN -DINF_AMAZON_SE
172 endif
173
174 #kernel build options for 2.4
175 # move to Makefile outside LINUX_SRC := /opt/star/kernel/linux-2.4.27-star
176
177 ifeq ($(PLATFORM),STAR)
178 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4  -mshort-load-bytes -msoft-float -Uarm -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
179
180 export CFLAGS
181 endif
182
183 ifeq ($(PLATFORM),SIGMA)
184 CFLAGS := -D__KERNEL__ -I$(RT28xx_DIR)/include -I$(LINUX_SRC)/include -I$(LINUX_SRC)/include/asm/gcc -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -DEM86XX_CHIP=EM86XX_CHIPID_TANGO2 -DEM86XX_REVISION=6 -I$(LINUX_SRC)/include/asm-mips/mach-generic -I$(RT2860_DIR)/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe  -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -DMODULE $(WFLAGS)
185
186 export CFLAGS
187 endif
188
189 ifeq ($(PLATFORM),SIGMA_8622)
190 CFLAGS := -D__KERNEL__ -I$(CROSS_COMPILE_INCLUDE)/include -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi -msoft-float -DMODULE -mshort-load-bytes -nostdinc -iwithprefix -DMODULE $(WFLAGS)
191 export CFLAGS
192 endif
193
194 ifeq ($(PLATFORM),5VT)
195 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm926ej-s --param max-inline-insns-single=40000  -Uarm -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE $(WFLAGS)
196
197 export CFLAGS
198 endif
199
200 ifeq ($(PLATFORM),IKANOS_V160)
201 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(LINUX_SRC)/include/asm/gcc -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-generic -I$(RT28xx_DIR)/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe -march=lx4189 -Wa, -DMODULE $(WFLAGS)
202 export CFLAGS
203 endif
204
205 ifeq ($(PLATFORM),IKANOS_V180)
206 CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(LINUX_SRC)/include/asm/gcc -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-tango2 -I$(LINUX_SRC)/include/asm-mips/mach-generic -I$(RT28xx_DIR)/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe -mips32r2 -Wa, -DMODULE $(WFLAGS)
207 export CFLAGS
208 endif
209
210 ifeq ($(PLATFORM),INF_TWINPASS)
211 CFLAGS := -D__KERNEL__ -DMODULE -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -march=4kc -mips32 -Wa,--trap -pipe -mlong-calls $(WFLAGS)
212 export CFLAGS
213 endif
214
215 ifeq ($(PLATFORM),INF_DANUBE)
216 CFLAGS := -I$(RT28xx_DIR)/include $(WFLAGS) -Wundef -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe -msoft-float  -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -I$(LINUX_SRC)/include/asm-mips/mach-generic
217 export CFLAGS
218 endif
219
220 ifeq ($(PLATFORM),BRCM_6358)
221 CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include -nostdinc -iwithprefix include -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I $(LINUX_SRC)/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -I$(LINUX_SRC)/include/asm-mips/mach-bcm963xx -I$(LINUX_SRC)/include/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement  -DMODULE -mlong-calls
222 export CFLAGS
223 endif
224
225 ifeq ($(PLATFORM),PC)
226     ifneq (,$(findstring 2.4,$(LINUX_SRC)))
227         # Linux 2.4
228         CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
229         export CFLAGS
230     else
231         # Linux 2.6
232         EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include
233     endif
234 endif
235
236 ifeq ($(PLATFORM),IXP)
237         EXTRA_CFLAGS := -v $(WFLAGS) -I$(RT28xx_DIR)/include -mbig-endian
238 endif
239
240 ifeq ($(PLATFORM),CAVM_OCTEON)
241         EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include \
242                                     -mabi=64 $(WFLAGS)
243 export CFLAGS
244 endif
245