K2.6 patches and update.
[tomato.git] / release / src-rt / linux / linux-2.6 / drivers / net / wl / Makefile
blob0a790644308d23421f9f8f65d79fabe610f0b2db
2 # Makefile for the Broadcom wl driver
4 # Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 # $Id: Makefile,v 1.13 2010-12-13 20:23:49 $
21 SRCBASE := ../../../../..
23 TARGET := wl
24 WLCONF_H := wlconf.h
25 WLCONF_O := wlconf.o
27 # Generate list of supported variants
28 VLIST_BASE := AP STA APSTA
29 ifeq ($(CONFIG_WL_USE_AP_SDSTD),y)
30 VLIST_BASE += AP_SDSTD
31 endif
33 VLIST += $(VLIST_BASE)
35 ifeq ($(CONFIG_WL_USBAP),y)
36 # Do variants because we need two drivers for dual band operation
37 WL_VARIANTS := 1
38 VLIST += HIGH
39 # Note that we don't use CONFIG_WL_USE_HIGH because we need to leave WL_SUFFIX for
40 # the other driver. HIGH driver is always called wl_high and loaded upon hotplut
41 # event.
42 endif
44 ifeq ($(BUILD_WL_ONCHIP_G),true)
45 VLIST += $(foreach base,$(VLIST_BASE),$(base)_ONCHIP_G)
46 endif # BUILD_WL_ONCHIP_G
48 # Set suffix and config based on the selected variant
49 WL_SUFFIX := $(strip $(foreach v,$(VLIST),$(if $(CONFIG_WL_USE_$(v)),$(v))))
50 CONFIG_WL_CONF := $(CONFIG_WL_$(WL_SUFFIX))
52 # Module file names use lowercase of the suffix
53 wl_suffix := $(shell echo "$(WL_SUFFIX)" | tr A-Z a-z)
56 # For PREBUILD and postbuild w/WLSRC, compile variants in subdirs
57 # Subdir names use lowercase versions of the variant suffixes
58 #wlsubdirs := $(addprefix wl_,$(foreach v,$(VLIST),$(shell echo "$(v)/" | tr A-Z a-z)))
59 wlsubdirs := $(addprefix wl_,$(foreach v,$(VLIST),$(shell echo "$(v)" | tr A-Z a-z)))
62 #subdir-y += $(wlsubdirs)
63 #subdir-m += $(wlsubdirs)
65 .NOTPARALLEL:
66 include $(src)/wl_generic.mk