2 # Makefile for the Broadcom wl driver
4 # Copyright (C) 2009, 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.
12 # $Id: Makefile,v 1.11 2010/02/23 07:32:54 Exp $
15 SRCBASE
:= ..
/..
/..
/..
/..
21 # Generate list of supported variants
22 VLIST_BASE
:= AP STA APSTA
23 ifeq ($(CONFIG_WL_USE_AP_SDSTD
),y
)
24 VLIST_BASE
+= AP_SDSTD
27 VLIST
+= $(VLIST_BASE
)
29 ifeq ($(CONFIG_WL_USBAP
),y
)
30 # Do variants because we need two drivers for dual band operation
33 # Note that we don't use CONFIG_WL_USE_HIGH because we need to leave WL_SUFFIX for
34 # the other driver. HIGH driver is always called wl_high and loaded upon hotplut
38 ifeq ($(BUILD_WL_ONCHIP_G
),true
)
39 VLIST
+= $(foreach base
,$(VLIST_BASE
),$(base
)_ONCHIP_G
)
40 endif # BUILD_WL_ONCHIP_G
42 # Set suffix and config based on the selected variant
43 WL_SUFFIX
:= $(strip $(foreach v
,$(VLIST
),$(if
$(CONFIG_WL_USE_
$(v
)),$(v
))))
44 CONFIG_WL_CONF
:= $(CONFIG_WL_
$(WL_SUFFIX
))
46 # Module file names use lowercase of the suffix
47 wl_suffix
:= $(shell echo
"$(WL_SUFFIX)" | tr A-Z a-z
)
50 include $(src
)/wl_generic.mk