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
15 include $(INCLUDE_DIR
)/package.mk
17 define KernelPackage
/b43
18 SUBMENU
:=Wireless Drivers
19 TITLE
:=Broadcom
43xx wireless support
20 DEPENDS
:=@TARGET_brcm47xx
+kmod-mac80211 @BROKEN
21 FILES
:=$(PKG_BUILD_DIR
)/b43.
$(LINUX_KMOD_SUFFIX
)
22 # AUTOLOAD:=$(call AutoLoad,30,b43)
25 define KernelPackage
/b43
/description
26 Kernel module for Broadcom
43xx wireless support
(mac80211
)
32 $(if
$(CONFIG_LEDS_TRIGGERS
),CONFIG_B43_LEDS
=y
) \
36 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(EXTRA_KCONFIG
)))) \
37 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(EXTRA_KCONFIG
)))) \
40 ARCH
="$(LINUX_KARCH)" \
41 CROSS_COMPILE
="$(TARGET_CROSS)" \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS
="$(EXTRA_CFLAGS)" \
44 LINUXINCLUDE
="-I$(STAGING_DIR)/usr/include/mac80211 -I$(LINUX_DIR)/include -include linux/autoconf.h" \
48 mkdir
-p
$(PKG_BUILD_DIR
)
49 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
52 define Build
/Configure
56 $(MAKE
) -C
"$(LINUX_DIR)" \
61 $(eval
$(call KernelPackage
,b43
))