Broadcom SDK and wireless driver: another attempt to update to ver. 5.10.147.0
[tomato.git] / release / src-rt / linux / linux-2.6 / drivers / net / wl / Makefile
blob785519f1d41912a22d125ca0d9ac43997a30e56c
2 # Makefile for the Broadcom wl driver
4 # Copyright (C) 2009, Broadcom Corporation
5 # All Rights Reserved.
6 #
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 := ../../../../..
17 TARGET := wl
18 WLCONF_H := wlconf.h
19 WLCONF_O := wlconf.o
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
25 endif
27 VLIST += $(VLIST_BASE)
29 ifeq ($(CONFIG_WL_USBAP),y)
30 # Do variants because we need two drivers for dual band operation
31 WL_VARIANTS := 1
32 VLIST += HIGH
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
35 # event.
36 endif
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