2 # Makefile for the Broadcom wl driver
4 # Copyright 2004, Broadcom Corporation
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
17 WL_OBJS
:= wl_linux.o wlc.o d11ucode.o wlc_phy.o wlc_rate.o wlc_led.o wlc_security.o rc4.o tkhash.o bcmwpa.o
19 INSUP_OBJS
:= aes.o aeskeywrap.o hmac.o md5.o passhash.o prf.o rijndael-alg-fst.o sha1.o
21 # Alternate ioctl interfaces
22 ifeq ($(CONFIG_NET_WIRELESS
),y
)
23 WL_OBJS
+= wlc_cmn_ioctl.o
25 ifeq ($(CONFIG_WL_OID
),y
)
29 ifeq ($(CONFIG_WL_STA
),y
)
30 WL_OBJS
+= $(INSUP_OBJS
)
33 # Prefix driver variants
34 WL_APOBJS
:= $(foreach obj
,$(WL_OBJS
),ap_
$(obj
))
35 WL_STAOBJS
:= $(foreach obj
,$(WL_OBJS
) wlc_sup.o
,sta_
$(obj
))
36 WL_APSTAOBJS
:= $(foreach obj
,$(WL_OBJS
) wlc_sup.o
,apsta_
$(obj
))
37 ifneq ($(CONFIG_WL_STA
),y
)
38 WL_APSTAOBJS
+= $(foreach obj
,$(INSUP_OBJS
), apsta_
$(obj
))
42 ifeq ($(CONFIG_WL_AP
),y
)
45 ifeq ($(CONFIG_WL_STA
),y
)
49 # Build all variants as modules but link only one of them
51 obj-y
:= $(WL_
$(AP
)$(STA
)OBJS
)
53 variant-objs
:= $(WL_APOBJS
) $(WL_STAOBJS
) $(WL_APSTAOBJS
)
57 include $(TOPDIR
)/Rules.make