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 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 include $(LINUX_DIR
)/.config
22 define KernelPackage
/bcm43xx-mac80211
23 SUBMENU
:=Wireless Drivers
24 TITLE
:=Broadcom
43xx wireless support
25 DESCRIPTION
:=Kernel module for Broadcom
43xx wireless support
(mac80211
)
26 DEPENDS
:=@LINUX_2_6_BRCM47XX
+kmod-mac80211
27 KCONFIG
:=CONFIG_MAC80211
28 FILES
:=$(PKG_BUILD_DIR
)/bcm43xx-mac80211.
$(LINUX_KMOD_SUFFIX
)
29 # AUTOLOAD:=$(call AutoLoad,30,bcm43xx-mac80211)
32 ifneq ($(CONFIG_MAC80211
),)
35 CONFIG_BCM43XX_MAC80211
=m \
36 CONFIG_BCM43XX_MAC80211_PCI
=y \
37 CONFIG_BCM43XX_MAC80211_DEBUG
=y \
38 CONFIG_BCM43XX_MAC80211_DMA
=y \
39 CONFIG_BCM43XX_MAC80211_PIO
=y \
40 CONFIG_BCM43XX_MAC80211_DMA_AND_PIO_MODE
=y \
43 -I
$(STAGING_DIR
)/usr
/include/mac80211 \
44 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(PKG_EXTRA_KCONFIG
)))) \
45 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(PKG_EXTRA_KCONFIG
)))) \
47 define Build
/Compile
/it
48 $(MAKE
) -C
"$(LINUX_DIR)" \
49 ARCH
="$(LINUX_KARCH)" \
50 CROSS_COMPILE
="$(TARGET_CROSS)" \
51 SUBDIRS
="$(PKG_BUILD_DIR)" \
52 $(PKG_EXTRA_KCONFIG
) \
53 EXTRA_CFLAGS
="$(PKG_EXTRA_CFLAGS)" \
61 mkdir
-p
$(PKG_BUILD_DIR
)
62 $(CP
) .
/src
/bcm43xx
/* $(PKG_BUILD_DIR
)/
65 define Build
/Configure
69 $(call Build
/Compile
/it
)
72 $(eval
$(call KernelPackage
,bcm43xx-mac80211
))