2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 7440 2007-06-02 02:22:01Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=bcm43xx-mac80211
15 include $(INCLUDE_DIR
)/package.mk
17 include $(LINUX_DIR
)/.config
20 define KernelPackage
/bcm43xx-mac80211
21 SUBMENU
:=Wireless Drivers
22 TITLE
:=Broadcom
43xx wireless support
23 DEPENDS
:=@TARGET_brcm47xx
+kmod-mac80211
24 KCONFIG
:=CONFIG_MAC80211
25 FILES
:=$(PKG_BUILD_DIR
)/bcm43xx-mac80211.
$(LINUX_KMOD_SUFFIX
)
26 # AUTOLOAD:=$(call AutoLoad,30,bcm43xx-mac80211)
29 define KernelPackage
/bcm43xx-mac80211
/description
30 Kernel module for Broadcom
43xx wireless support
(mac80211
)
33 ifneq ($(CONFIG_MAC80211
),)
36 CONFIG_BCM43XX_MAC80211
=m \
37 CONFIG_BCM43XX_MAC80211_PCI
=y \
38 CONFIG_BCM43XX_MAC80211_DEBUG
=y \
39 CONFIG_BCM43XX_MAC80211_DMA
=y \
40 CONFIG_BCM43XX_MAC80211_PIO
=y \
41 CONFIG_BCM43XX_MAC80211_DMA_AND_PIO_MODE
=y \
44 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
45 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(PKG_EXTRA_KCONFIG
)))) \
46 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(PKG_EXTRA_KCONFIG
)))) \
48 define Build
/Compile
/it
49 $(MAKE
) -C
"$(LINUX_DIR)" \
50 ARCH
="$(LINUX_KARCH)" \
51 CROSS_COMPILE
="$(TARGET_CROSS)" \
52 SUBDIRS
="$(PKG_BUILD_DIR)" \
53 $(PKG_EXTRA_KCONFIG
) \
54 EXTRA_CFLAGS
="$(PKG_EXTRA_CFLAGS)" \
62 mkdir
-p
$(PKG_BUILD_DIR
)
63 $(CP
) .
/src
/bcm43xx
/* $(PKG_BUILD_DIR
)/
66 define Build
/Configure
70 $(call Build
/Compile
/it
)
73 $(eval
$(call KernelPackage
,bcm43xx-mac80211
))